* Let a Playground know about the CKernel.
[matthijs/ABM2.git] / ABM2 / Playground.h
index 1c99ab4030b095164f1e8a079a20255c783e1ca2..7c14f7c3be3759d1b9e39e2dfaf06e4a45687a19 100755 (executable)
@@ -21,7 +21,7 @@ public:
        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
@@ -34,30 +34,39 @@ public:
        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
@@ -68,4 +77,5 @@ private:
        void move_left();\r
 \r
        DWORD old_counter;\r
+       CKernel *kernel;\r
 };\r