summary refs log tree commit diff stats
path: root/src/character_system.h
blob: ff5db02e44ffa73d94541379708cd0b81750371a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef PARTY_H_826F91BA
#define PARTY_H_826F91BA

#include "system.h"

class Mixer;
class Game;
class Input;

class CharacterSystem : public System {
public:

  static constexpr SystemKey Key = SystemKey::Character;

  CharacterSystem(Game& game) : game_(game) {}

  void addSpriteToParty(int leaderId, int followerId);

  void moveSprite(int spriteId, Mixer& mixer, const Input& keystate);

  void beginCrouch(int spriteId);

  void endCrouch(int spriteId);

private:

  void stopRunning(int spriteId);

  Game& game_;
};

#endif /* end of include guard: PARTY_H_826F91BA */