Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/CGame.h
blob: 07c09960f052cb899af9b2f156473b8712d0fc78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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__ */