summary refs log tree commit diff stats
path: root/src/character_system.h
diff options
context:
space:
mode:
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 */