X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.h;h=e94ed417b689807e580bf20a6925d0371327ef59;hb=049f304d41e9aa8b5821e298fcb68c1b9a7e97d6;hp=e3ecca915cfaa967ad4b9c765edd313c696d267c;hpb=6d080d21d8055df9962296863b4c0954bc81410b;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index e3ecca9..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 &); @@ -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; };