| author | Mohammed Khoory |
| Wed Jul 07 19:11:38 2010 -0400 (22 months ago) | |
| changeset 5 | bcf3d6f89c62 |
| permissions | -rw-r--r-- |
1 /*
2 This gamemanager is used for testing
3 */
5 #ifndef TESTMANAGER
6 #define TESTMANAGER
8 #include "graphics.h"
9 #include "gmanager.h"
10 #include "gobject.h"
11 #include "sprload.h"
12 /*extern "C" {
13 #include "keyboard.h"
14 }*/
15 extern "C" char keyPressed(unsigned char key);
17 class TestManager : public GameManager
18 {
19 private:
21 protected:
22 struct sprite * testSprite;
23 int spriteX, spriteY;
24 bool wKey, aKey, sKey, dKey;
26 public:
27 TestManager();
28 ~TestManager();
30 // inherited methods
31 virtual int processKeys();
32 virtual int updateState();
33 virtual int render(GraphicsDevice& graphics);
34 virtual int registerGameObject(GameObject * aGameObject);
35 virtual int finished();
37 static const int FINISHED = 1;
38 };
40 #endif