-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCAppStateGame.h
57 lines (37 loc) · 906 Bytes
/
CAppStateGame.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef __CAPPSTATEGAME_H__
#define __CAPPSTATEGAME_H__
#include "CAppState.h"
#include "CArea.h"
#include "CCamera.h"
#include "CEntity.h"
#include "CSurface.h"
#include "CScreenText.h"
#include "CPlayer.h"
#include "CEnemy.h"
#include "Item.h"
#include "Weapon.h"
class CAppStateGame : public CAppState
{
private:
private:
CAppStateGame();
bool pause;
SDL_Surface* Surf_Pause;
int timer;
public:
static CAppStateGame Instance;
CPlayer Player;
Weapon TestWeapon;
void OnKeyDown(SDLKey sym, SDLMod mod, Uint16 unicode);
void OnKeyUp(SDLKey sym, SDLMod mod, Uint16 unicode);
void OnLButtonDown(int mX, int mY);
public:
void OnActivate();
void OnDeactivate();
void OnLoop();
void OnRender(SDL_Surface* Surf_Display);
void Reset();
public:
static CAppStateGame* GetInstance();
};
#endif