]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/BattleState.h
added item target selection
[l2e.git] / src / battle / BattleState.h
index 3b293546382c1668a732eb80dff6eff64a26c500..1a0586c9025e31b42113468bc06c50e607517bfe 100644 (file)
@@ -86,6 +86,8 @@ public:
        const geometry::Point<int> &HeroTagPositionAt(std::vector<Hero>::size_type index) const { return heroTagPositions[index]; }
        bool HasChosenAttackType() const { return attackChoices[activeHero].GetType() != AttackChoice::UNDECIDED; }
        void SetAttackType(AttackChoice::Type t) { attackChoices[activeHero].SetType(t); }
+       AttackChoice &ActiveHeroAttackChoice() { return attackChoices[activeHero]; }
+       const AttackChoice &ActiveHeroAttackChoice() const { return attackChoices[activeHero]; }
        TargetSelection &ActiveHeroTargets() { return attackChoices[activeHero].Selection(); }
        const TargetSelection &ActiveHeroTargets() const { return attackChoices[activeHero].Selection(); }
        bool AttackSelectionDone() const { return activeHero >= (int) heroes.size(); }