diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-03 02:03:59 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-03 02:03:59 -0500 |
commit | 8d7ef2b2ae3ddff204f5934fe67c535d7f1345e9 (patch) | |
tree | 7bcc12dd2efab7e24867895c5ef3fbb3e7d0e36d /src/character_system.h | |
parent | be09120d1d044b476ef8b516efbdb526f20d9e2d (diff) | |
download | tanetane-8d7ef2b2ae3ddff204f5934fe67c535d7f1345e9.tar.gz tanetane-8d7ef2b2ae3ddff204f5934fe67c535d7f1345e9.tar.bz2 tanetane-8d7ef2b2ae3ddff204f5934fe67c535d7f1345e9.zip |
Converted Party into CharacterSystem
Diffstat (limited to 'src/character_system.h')
-rw-r--r-- | src/character_system.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/character_system.h b/src/character_system.h new file mode 100644 index 0000000..ff5db02 --- /dev/null +++ b/src/character_system.h | |||
@@ -0,0 +1,32 @@ | |||
1 | #ifndef PARTY_H_826F91BA | ||
2 | #define PARTY_H_826F91BA | ||
3 | |||
4 | #include "system.h" | ||
5 | |||
6 | class Mixer; | ||
7 | class Game; | ||
8 | class Input; | ||
9 | |||
10 | class CharacterSystem : public System { | ||
11 | public: | ||
12 | |||
13 | static constexpr SystemKey Key = SystemKey::Character; | ||
14 | |||
15 | CharacterSystem(Game& game) : game_(game) {} | ||
16 | |||
17 | void addSpriteToParty(int leaderId, int followerId); | ||
18 | |||
19 | void moveSprite(int spriteId, Mixer& mixer, const Input& keystate); | ||
20 | |||
21 | void beginCrouch(int spriteId); | ||
22 | |||
23 | void endCrouch(int spriteId); | ||
24 | |||
25 | private: | ||
26 | |||
27 | void stopRunning(int spriteId); | ||
28 | |||
29 | Game& game_; | ||
30 | }; | ||
31 | |||
32 | #endif /* end of include guard: PARTY_H_826F91BA */ | ||