summary refs log tree commit diff stats
path: root/src/sprite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sprite.h')
-rw-r--r--src/sprite.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/sprite.h b/src/sprite.h index 65a7a66..2dc0ee1 100644 --- a/src/sprite.h +++ b/src/sprite.h
@@ -16,7 +16,8 @@ struct SpriteFrame {
16}; 16};
17 17
18enum class CharacterState { 18enum class CharacterState {
19 Normal, 19 Still,
20 Walking,
20 Crouching, 21 Crouching,
21 Running 22 Running
22}; 23};
@@ -44,9 +45,13 @@ public:
44 std::map<std::string, std::map<Direction, int>> nameDirToAnim; 45 std::map<std::string, std::map<Direction, int>> nameDirToAnim;
45 46
46 // Character 47 // Character
48 bool orientable = false;
47 std::vector<int> followers; 49 std::vector<int> followers;
48 std::deque<Movement> trail; 50 std::deque<Movement> trail;
49 CharacterState characterState = CharacterState::Normal; 51 CharacterState characterState = CharacterState::Still;
52
53 // Input
54 bool controllable = false;
50}; 55};
51 56
52#endif /* end of include guard: SPRITE_H_70503825 */ 57#endif /* end of include guard: SPRITE_H_70503825 */