summary refs log tree commit diff stats
path: root/src/character_system.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-03 02:03:59 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-03 02:03:59 -0500
commit8d7ef2b2ae3ddff204f5934fe67c535d7f1345e9 (patch)
tree7bcc12dd2efab7e24867895c5ef3fbb3e7d0e36d /src/character_system.h
parentbe09120d1d044b476ef8b516efbdb526f20d9e2d (diff)
downloadtanetane-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.h32
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
6class Mixer;
7class Game;
8class Input;
9
10class CharacterSystem : public System {
11public:
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
25private:
26
27 void stopRunning(int spriteId);
28
29 Game& game_;
30};
31
32#endif /* end of include guard: PARTY_H_826F91BA */