diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-03 12:33:03 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-03 12:33:03 -0500 |
commit | 683e22c419757744ce853c35d732f607ddb9af16 (patch) | |
tree | bc31c1c08f19d270f70b27737d4f6944d30759b7 /src/sprite.h | |
parent | 8d7ef2b2ae3ddff204f5934fe67c535d7f1345e9 (diff) | |
download | tanetane-683e22c419757744ce853c35d732f607ddb9af16.tar.gz tanetane-683e22c419757744ce853c35d732f607ddb9af16.tar.bz2 tanetane-683e22c419757744ce853c35d732f607ddb9af16.zip |
Added input system
Diffstat (limited to 'src/sprite.h')
-rw-r--r-- | src/sprite.h | 9 |
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 | ||
18 | enum class CharacterState { | 18 | enum 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 */ |