void Update();\r
void move(int xloc, int yloc);\r
void move_to(int xloc, int yloc);\r
- void move_to_direction(TMoveDirection dir, int speed);\r
+ void move_to_direction(TMoveDirection dir);\r
int getY();\r
int getX();\r
int getHeight();\r
int getFieldCenterY();\r
private:\r
int x,y;\r
+#ifdef WIN32\r
LPDIRECT3DTEXTURE9 texture;\r
+#endif // WIN32\r
};\r
\r
class Item\r
{\r
public:\r
+#ifdef WIN32\r
Item(LPDIRECT3DTEXTURE9 t, int texnr, int subwidth, int subheight, int colnr, int rownr);\r
+#endif // WIN32\r
~Item();\r
void Draw();\r
int col, row, tex_num, subitem_height, subitem_width;\r
private:\r
+#ifdef WIN32\r
LPDIRECT3DTEXTURE9 texture;\r
+#endif // WIN32\r
};\r
\r
class Playground : public ITask\r
{\r
public:\r
+ Playground(CKernel *kernel);\r
bool Start();\r
void Update();\r
void Stop();\r
AUTO_SIZE;\r
private:\r
+#ifdef WIN32\r
LPDIRECT3DTEXTURE9 background;\r
LPDIRECT3DTEXTURE9 foreground;\r
+#endif // WIN32\r
\r
Bomberman *bomberman;\r
Item *field[PLAYGROUND_COLS][PLAYGROUND_ROWS];\r
void move_left();\r
\r
DWORD old_counter;\r
+ CKernel *kernel;\r
};\r