| author | Mohammed Khoory |
| Wed Jul 07 19:11:38 2010 -0400 (22 months ago) | |
| changeset 5 | bcf3d6f89c62 |
| parent 4 | 6366beccd211 |
| permissions | -rw-r--r-- |
1 /*
2 ------------------------------------------
3 The main game manager
4 ---------------------------------------
6 */
8 #include "9Game.h"
10 Game9::Game9()
11 {
12 // graphics = GraphicsDevice();
13 testman = new TestManager();
14 currentManager = testman;
16 }
18 Game9::~Game9()
19 {
20 if(testman != NULL)
21 {
22 delete testman;
23 testman = NULL;
24 }
25 }
27 int Game9::processKeys()
28 {
29 currentManager->processKeys();
30 return 0;
31 }
33 int Game9::updateState()
34 {
35 currentManager->updateState();
36 return 0;
37 }
39 int Game9::render(GraphicsDevice& graphics)
40 {
41 currentManager->render(graphics);
42 return 0;
43 }
45 int Game9::registerGameObject(GameObject * aGameObject)
46 {
47 return 0;
48 }
49 int Game9::finished()
50 {
51 return currentManager->finished();
52 }