-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLevel.h
More file actions
54 lines (39 loc) · 828 Bytes
/
Copy pathLevel.h
File metadata and controls
54 lines (39 loc) · 828 Bytes
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
#ifndef __LEVEL_H__
#define __LEVEL_H__
#include "common.h"
#define LVL_ENEMY 'E'
#define LVL_BOSS 'B'
#define LVL_BEGIN 'S'
#define LVL_END 'F'
using namespace std;
struct Command {
long timer;
char cmd;
int p1;
int p2;
int p3;
int p4;
int p5;
int p6;
int p7;
int p8;
int p9;
int p10;
};
class Level {
public:
Level();
~Level();
void loadLevel(int level);
void addEnemyToQueue(int timer, int image, int posX, int posY, int shotDelay, int damage, int armor, int beam, int flightType, int speedX, int speedY);
bool isNextEvent();
Command* nextEvent();
int level;
int levelY;
int levelScrollSpeed;
int backgroundImage;
int backgroundScrollSpeed;
long levelStartTime;
vector<Command*> lvl_cmds;
};
#endif