-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcl_entity.hpp
More file actions
70 lines (59 loc) · 1.42 KB
/
Copy pathcl_entity.hpp
File metadata and controls
70 lines (59 loc) · 1.42 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef CLENTITY_HPP
#define CLENTITY_HPP
#include <string>
#include "position.hpp"
class CLEntity
{
public:
CLEntity(
int newID,
std::string newSpriteName,
float drawScale,
Position &newPos,
int type,
int team,
std::string label,
int effect);
virtual ~CLEntity();
inline int getID() const
{ return entID; }
inline void setPosition(const Position &pos)
{ position = pos; }
inline Position &getPosition(void)
{ return position; }
inline int getType()
{ return entType; }
inline int getTeam()
{ return entTeam; }
inline float getRadius()
{ return radius; }
inline void setEngines(short whichEngines, float currRadius)
{ enginesSet = whichEngines; radius = currRadius;}
inline void setRadius(float r) {radius = r;}
inline void setEffect(int e) {effect = e;}
void setShield(float time, short type, float rad);
//void drawShield();
//virtual int getTeam() {return entTeam;}
//private:
int entID;
std::string spriteName;
float scale;
Position position;
//ImageX *sprite;
Image *sprite;
short enginesSet;
float radius;
bool shouldChangeColor;
bool isVisible;
int entType;
int effect;
std::string label;
float shieldTime;
float shieldRadius;
short shieldType;
bool isAlly;
int entTeam;
//Used to color bots for debugging
Color color;
};
#endif //CL_ENTITY_HPP