From 8d7ef2b2ae3ddff204f5934fe67c535d7f1345e9 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 3 Feb 2021 02:03:59 -0500 Subject: Converted Party into CharacterSystem --- src/character_system.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/character_system.h (limited to 'src/character_system.h') 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 @@ +#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 */ -- cgit 1.4.1