X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2FABM2.git;a=blobdiff_plain;f=ABM2%2FPlayground.h;fp=ABM2%2FPlayground.h;h=9cb5e22063f7ca47c2ccfc8d137da2bef014159c;hp=20d10522c07eee8628b45c322b86460ac338aa7f;hb=4ab7ea7617b0c8cb1ab19bea1d439b3d1bb9839c;hpb=c100d6f67b06abb348319e277a66b6b7ab0c4bd5 diff --git a/ABM2/Playground.h b/ABM2/Playground.h index 20d1052..9cb5e22 100755 --- a/ABM2/Playground.h +++ b/ABM2/Playground.h @@ -39,19 +39,15 @@ private: #endif // WIN32 }; -class Item +class Tile { public: -#ifdef WIN32 - Item(LPDIRECT3DTEXTURE9 t, int texnr, int subwidth, int subheight, int colnr, int rownr); -#endif // WIN32 - ~Item(); + Tile(const CMMPointer &sprite, int subsprite, int col, int row); + ~Tile(); void Draw(); - int col, row, tex_num, subitem_height, subitem_width; private: -#ifdef WIN32 - LPDIRECT3DTEXTURE9 texture; -#endif // WIN32 + CMMPointer sprite; + int col, row, subsprite; }; class Playground : public ITask @@ -69,7 +65,7 @@ private: #endif // WIN32 Bomberman *bomberman; - Item *field[PLAYGROUND_COLS][PLAYGROUND_ROWS]; + Tile *field[PLAYGROUND_COLS][PLAYGROUND_ROWS]; void move_up(); void move_down();