diff options
Diffstat (limited to 'src/entity.h')
| -rw-r--r-- | src/entity.h | 31 | 
1 files changed, 31 insertions, 0 deletions
| diff --git a/src/entity.h b/src/entity.h new file mode 100644 index 0000000..d99680f --- /dev/null +++ b/src/entity.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #ifndef ENTITY_H_0D6CB29A | ||
| 2 | #define ENTITY_H_0D6CB29A | ||
| 3 | |||
| 4 | #include "vector.h" | ||
| 5 | |||
| 6 | class Entity { | ||
| 7 | public: | ||
| 8 | |||
| 9 | // Transform | ||
| 10 | vec2s pos; | ||
| 11 | vec2s size; | ||
| 12 | |||
| 13 | // Grid placement | ||
| 14 | vec2s gridPos; | ||
| 15 | |||
| 16 | // Movement | ||
| 17 | bool moving = false; | ||
| 18 | vec2s destPos; | ||
| 19 | double movementTween = 0.0; | ||
| 20 | double speed = 0.0; // Tiles per second | ||
| 21 | |||
| 22 | // Player | ||
| 23 | bool player = false; | ||
| 24 | |||
| 25 | // Collision | ||
| 26 | bool playerCanPush = false; | ||
| 27 | bool trainCanPush = false; | ||
| 28 | |||
| 29 | }; | ||
| 30 | |||
| 31 | #endif /* end of include guard: ENTITY_H_0D6CB29A */ | ||
