blob: a69c612df1afbe944c365daa34718802e21b79d3 (
plain) (
blame)
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
|
#ifndef ENTITY_H_0D6CB29A
#define ENTITY_H_0D6CB29A
#include <set>
#include "vector.h"
#include "enums.h"
class Entity {
public:
// Transform
vec2s pos;
vec2s size;
// Grid placement
vec2s gridPos;
// Movement
Direction shouldMoveTo = Direction::none;
bool moving = false;
vec2s destPos;
double movementTween = 0.0;
double speed = 0.0; // Tiles per second
Direction moveDir = Direction::none;
// Player
bool controllable = false;
// Collision
ColliderType colliderType = ColliderType::other;
std::set<ColliderType> canBePushedBy;
// Temp
int colorVal = 25;
bool scheduled = false;
};
#endif /* end of include guard: ENTITY_H_0D6CB29A */
|