-
Notifications
You must be signed in to change notification settings - Fork 0
/
vr.h
60 lines (43 loc) · 927 Bytes
/
vr.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
58
59
60
/*===========================================*
* Virtual Really Mode *
*-------------------------------------------*
* Here *must* be written all game logic *
* uses in the virtual really mode *
*===========================================*
*/
#ifndef VR_H
#define VR_H
#include <SDL/SDL.h>
#include "gameMisc.h"
#define VR_ENEMY_NUM 5
#define VR_SPECIAL 1
enum VR_STATE {
VR_STATE_IN_GAME = 0,
VR_STATE_IN_BEND = 1,
VR_STATE_IN_END = 2
};
struct tmr {
int mil;
int sec;
int min;
unsigned int sysTick;
char buffer[15];
};
class VR {
public:
VR();
~VR();
void setGameScore(unsigned int gameScore);
void gameLogic();
void setState(unsigned int vrState);
unsigned int getState();
tmr timer;
unsigned int ammo;
unsigned int gameScore;
private:
gameMisc misc;
char scoreBuffer[15];
unsigned int vrState;
bool inFadeEnd;
};
#endif