-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntity.h
executable file
·59 lines (40 loc) · 1.01 KB
/
Entity.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
#ifndef ENTITY_H
#define ENTITY_H
#include <string>
class Entity
{
private:
const unsigned int UEID;
int maxHealth;
int health;
std::string texLoc;
bool texChanged;
public:
Entity( unsigned int UEID, bool invX, bool invY );
virtual ~Entity();
unsigned int getUEID();
void tick( long dt );
/// Returns an int containing position for texture. Do NOT use the update function to increment / decrement texPos!
virtual int getTexturePos();
virtual int getColor();
bool getTexChanged();
const char* getTexLocation();
void setPosX( double x );
void setPosY( double y );
double getPosX();
double getPosY();
void setRotX( double rotX );
void setRotZ( double rotZ );
double getRotX();
double getRotZ();
bool getInvX();
bool getInvY();
protected:
double x, y;
double rotX, rotZ;
bool invX, invY;
virtual void onUpdate( long dt ) = 0;
virtual int getMaxHealth();
void changeTextureLoc( const char* textureLocation );
};
#endif