Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/CGame.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CGame.h')
-rwxr-xr-xsrc/CGame.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/CGame.h b/src/CGame.h
new file mode 100755
index 0000000..07c0996
--- /dev/null
+++ b/src/CGame.h
@@ -0,0 +1,37 @@
+//--------------------------------------------------------------------------------------------------
+// CGame.
+// A class to represent the game. Is is also used to hold global references.
+//--------------------------------------------------------------------------------------------------
+
+#ifndef __CGAME_H__
+#define __CGAME_H__
+
+#include <stdio.h>
+#include "CGameConstants.h"
+#include "CTileMap.h"
+#include "CPlayer.h"
+#include "CSpriteAnimation.h"
+#include "CSurface.h"
+
+class CGame
+{
+ public:
+ CGame(CSurface *aScreenSurface);
+ ~CGame(void);
+ void destroy(void);
+
+ void update(void);
+ void render(void);
+
+ void drawMap(void);
+
+ private:
+ CSurface *mScreenSurface;
+
+
+ CTileMap *mMap;
+ CPlayer *mPlayer;
+};
+
+#endif /* __CGAME_H__ */
+