]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/Battle.h
moved upgrade process to battle class
[l2e.git] / src / battle / Battle.h
index cd2894fa753dbba0cbc0f39bc4aea765c524df0b..d794ebb3cefee126175a8faee2bd5398e3466214 100644 (file)
@@ -8,7 +8,9 @@ namespace battle {
        class TargetSelection;
 }
 namespace common {
+       struct GameState;
        class Stats;
+       class Upgrade;
 }
 
 #include "Capsule.h"
@@ -47,7 +49,9 @@ public:
        bool MonsterAlive(int index) const;
        bool CapsuleAlive() const;
 
+       std::vector<Hero>::iterator HeroesBegin() { return heroes.begin(); }
        std::vector<Hero>::const_iterator HeroesBegin() const { return heroes.begin(); }
+       std::vector<Hero>::iterator HeroesEnd() { return heroes.end(); }
        std::vector<Hero>::const_iterator HeroesEnd() const { return heroes.end(); }
        Hero &HeroAt(int index);
        const Hero &HeroAt(int index) const;
@@ -109,6 +113,9 @@ public:
 
        int ExpReward() const { return expReward; }
        int GoldReward() const { return goldReward; }
+       void ApplyRewards(
+                       common::GameState &,
+                       std::vector<common::Upgrade> &);
 
 private:
        const PartyLayout *heroesLayout;