X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.h;h=e94ed417b689807e580bf20a6925d0371327ef59;hb=049f304d41e9aa8b5821e298fcb68c1b9a7e97d6;hp=57c037f0643c4371e51ab78c98b7e8e397327211;hpb=62c0a1d0ac98eb51418e4daa59e80b6cc97b522f;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index 57c037f..e94ed41 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -51,7 +51,8 @@ public: , res(res) , attackTypeMenu(res->attackIcons) , moveMenu(res->moveIcons) - , activeHero(-1) { } + , activeHero(-1) + , ranAway(false) { } public: void AddMonster(const Monster &); @@ -65,7 +66,7 @@ public: virtual void Resize(int width, int height); - virtual void HandleInput(const app::Input &); + virtual void HandleEvents(const app::Input &); virtual void UpdateWorld(float deltaT); virtual void Render(SDL_Surface *); @@ -109,6 +110,8 @@ public: std::vector &Heroes() { return heroes; } const std::vector &Heroes() const { return heroes; } + void SetRunaway() { ranAway = true; } + public: geometry::Vector CalculateScreenOffset(SDL_Surface *screen) const { return geometry::Vector( @@ -147,6 +150,7 @@ private: geometry::Point heroTagPositions[4]; AttackChoice attackChoices[4]; int activeHero; + bool ranAway; };