summary refs log tree commit diff stats
path: root/src/entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/entity.h b/src/entity.h index c47f1e7..3387219 100644 --- a/src/entity.h +++ b/src/entity.h
@@ -2,13 +2,24 @@
2#define ENTITY_H_0D6CB29A 2#define ENTITY_H_0D6CB29A
3 3
4#include <set> 4#include <set>
5#include <vector>
5#include "vector.h" 6#include "vector.h"
6#include "enums.h" 7#include "enums.h"
7#include "direction.h" 8#include "direction.h"
8 9
10class Entity;
11
12using id_type = std::vector<Entity>::size_type;
13
9class Entity { 14class Entity {
10public: 15public:
11 16
17 Entity(id_type id) : id(id)
18 {
19 }
20
21 id_type id;
22
12 // Transform 23 // Transform
13 vec2s pos; 24 vec2s pos;
14 vec2s size; 25 vec2s size;