From 683e22c419757744ce853c35d732f607ddb9af16 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 3 Feb 2021 12:33:03 -0500 Subject: Added input system --- src/character_system.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/character_system.h') diff --git a/src/character_system.h b/src/character_system.h index ff5db02..2eea233 100644 --- a/src/character_system.h +++ b/src/character_system.h @@ -2,6 +2,9 @@ #define PARTY_H_826F91BA #include "system.h" +#include "direction.h" +#include "timer.h" +#include "sprite.h" class Mixer; class Game; @@ -14,9 +17,15 @@ public: CharacterSystem(Game& game) : game_(game) {} + void initSprite(int spriteId); + + void tick(double dt) override; + void addSpriteToParty(int leaderId, int followerId); - void moveSprite(int spriteId, Mixer& mixer, const Input& keystate); + void moveInDirection(int spriteId, Direction dir); + + void stopDirecting(int spriteId); void beginCrouch(int spriteId); @@ -26,7 +35,10 @@ private: void stopRunning(int spriteId); + void setPartyState(int spriteId, CharacterState state); + Game& game_; + Timer inputTimer_ {33}; }; #endif /* end of include guard: PARTY_H_826F91BA */ -- cgit 1.4.1