]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/BattleState.h
show battle results interactively
[l2e.git] / src / battle / BattleState.h
index 0f3216e4618b51fe3a0f822086dd2ca2eb013ced..24b7c94d5c6fbf6bc4365625d15953bf6fcfff26 100644 (file)
@@ -45,7 +45,8 @@ public:
        , battle(game->heroesLayout, monstersLayout)
        , attackTypeMenu(res->attackIcons)
        , moveMenu(res->moveIcons)
-       , ranAway(false) { assert(background && game); }
+       , ranAway(false), alreadyPushed(false)
+       { assert(background && game); }
 
 public:
        void AddMonster(const Monster &);
@@ -60,6 +61,7 @@ public:
 public:
        Battle &GetBattle() { return battle; }
        const Battle &GetBattle() const { return battle; }
+       const common::GameConfig &Game() const { return *game; }
        const Resources &Res() const { return *res; }
        AttackTypeMenu &GetAttackTypeMenu() { return attackTypeMenu; }
        MoveMenu &GetMoveMenu() { return moveMenu; }
@@ -122,6 +124,7 @@ private:
        math::Vector<int> offset;
 
        bool ranAway;
+       bool alreadyPushed;
 
 };