]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/BattleState.h
added hit tracking to timers
[l2e.git] / src / battle / BattleState.h
index e3ecca915cfaa967ad4b9c765edd313c696d267c..e94ed417b689807e580bf20a6925d0371327ef59 100644 (file)
@@ -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<Hero> &Heroes() { return heroes; }
        const std::vector<Hero> &Heroes() const { return heroes; }
 
+       void SetRunaway() { ranAway = true; }
+
 public:
        geometry::Vector<int> CalculateScreenOffset(SDL_Surface *screen) const {
                return geometry::Vector<int>(
@@ -147,6 +150,7 @@ private:
        geometry::Point<int> heroTagPositions[4];
        AttackChoice attackChoices[4];
        int activeHero;
+       bool ranAway;
 
 };