]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/BattleState.h
added numbers animation for monsters' attacks
[l2e.git] / src / battle / BattleState.h
index 8814663dae807fce9eb3226b065e60e889fdc7bb..a10ff7e8fae2b6947dd651c4a403c9b33c57e76d 100644 (file)
@@ -76,6 +76,7 @@ public:
        virtual void UpdateWorld(float deltaT);
        virtual void Render(SDL_Surface *);
 
+       // TODO: turn this mess into a well stuctured interface
 public:
        const Resources &Res() const { return *res; }
        AttackTypeMenu &GetAttackTypeMenu() { return attackTypeMenu; }
@@ -108,6 +109,8 @@ public:
        const AttackChoice &ActiveHeroAttackChoice() const { return AttackChoiceAt(activeHero); }
        AttackChoice &AttackChoiceAt(int index) { assert(index >= 0 && index < NumHeroes()); return attackChoices[index]; }
        const AttackChoice &AttackChoiceAt(int index) const { assert(index >= 0 && index < NumHeroes()); return attackChoices[index]; }
+       AttackChoice &MonsterAttackChoiceAt(int index) { assert(index >= 0 && index < MaxMonsters()); return monsterAttacks[index]; }
+       const AttackChoice &MonsterAttackChoiceAt(int index) const { assert(index >= 0 && index < MaxMonsters()); return monsterAttacks[index]; }
        bool AttackSelectionDone() const { return activeHero >= numHeroes; }
 
        int NumHeroes() const { return numHeroes; }