-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGod.h
More file actions
executable file
·54 lines (42 loc) · 1.44 KB
/
God.h
File metadata and controls
executable file
·54 lines (42 loc) · 1.44 KB
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
#pragma once
/////////////////////////////////////////////////////////////////
// DEFINE
/////////////////////////////////////////////////////////////////
#define SHOOTING 0x01
#define MOOVING 0x02
#define DYING 0x03
#define RAS 0x00
/////////////////////////////////////////////////////////////////
// INCLUDE
/////////////////////////////////////////////////////////////////
#include "ressources.h"
#include "TileSet.h"
#include "CGo.h"
/////////////////////////////////////////////////////////////////
// DEFINITION
/////////////////////////////////////////////////////////////////
class CGod : public CGo
{
private:
short _currentImg;
CTileSet *_animeSet;
BYTE _state;
vertexCoord blockPlotter();
//static CGos* _world;
public:
//static void setWorld(CGos* world){CGod::_world = world;}
CGod(void); // constructeur
CGod(POINT vect); // constructeur par valeur
void setDir(BYTE dir); // set unit's direction
void setMooving(bool moove); // make the unit moove
void setShooting(bool shoot); // make the unit shoot
void setDying(bool dying); // make the unit die
void setRAS(); // make the unit wait
bool isMooving(); // mooving or not
bool isShooting(); // shooting or not
bool isDying(); // dying or not
bool isWaiting(); // waiting or not
void render(POINT offset, bool behind); // draw the unit
void setAnimeSet(CTileSet *anime); // set the anime set
~CGod(void); // destructor
};