X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ABM2%2FPlayground.h;h=9cb5e22063f7ca47c2ccfc8d137da2bef014159c;hb=4ab7ea7617b0c8cb1ab19bea1d439b3d1bb9839c;hp=ae495379ce398ca31e0585fb1fad507bb7d7c44f;hpb=ef328ea4a5e0e2f76f474d3b452e8b35b7fb2995;p=matthijs%2FABM2.git diff --git a/ABM2/Playground.h b/ABM2/Playground.h index ae49537..9cb5e22 100755 --- a/ABM2/Playground.h +++ b/ABM2/Playground.h @@ -21,7 +21,7 @@ public: void Update(); void move(int xloc, int yloc); void move_to(int xloc, int yloc); - void move_to_direction(TMoveDirection dir, int speed); + void move_to_direction(TMoveDirection dir); int getY(); int getX(); int getHeight(); @@ -39,24 +39,21 @@ 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 { public: + Playground(CKernel *kernel); bool Start(); void Update(); void Stop(); @@ -68,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();