-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstage.h
executable file
·49 lines (38 loc) · 904 Bytes
/
stage.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
#ifndef _JWL_STAGE
#define _JWL_STAGE
#include <vector>
#include "agl/game.h"
#include "agl/drawer.h"
#include "agl/gameobject.h"
#include "agl/image.h"
#include "agl/support.h"
#include "enemy.h"
const float PROTECTION_TIME = 0.35;
const float INITIAL_PROTECTION_TIME = 0.6;
class Stage
{
private:
bool initialProtectionOver;
bool _isColliding;
bool _gotJewel;
float collisionTimer;
public:
AGL::Game* game;
AGL::Drawer* drawer;
AGL::GameObject* thief;
unsigned short number;
unsigned short jewelValue;
AGL::Image* background;
vector<Enemy*> enemies;
vector<AGL::GameObject*> jewels;
Stage(AGL::Game* _game, AGL::Drawer* _drawer, AGL::GameObject* _thief, unsigned short _number);
~Stage();
static bool exists(unsigned short _number);
void update();
void draw();
void checkCollision();
bool isColliding();
bool gotJewel();
bool isClear();
};
#endif