X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbattle%2FBattleState.h;h=b56b9fe3d55cd262dab2ff1e5acec7ad2f65e7d9;hb=2e0bbc9fcc1cce3e1faeff85cc63de7f676e8077;hp=f4f8bc1c3093aed7ce4cc8fffb907975f839ee3e;hpb=3ecf76abb280da727806262b4cac3472d94f9c5a;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index f4f8bc1..b56b9fe 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -24,6 +24,7 @@ namespace app { class Input; } namespace graphics { class Frame; + class Gauge; class Sprite; } @@ -35,12 +36,15 @@ class BattleState : public app::State { public: - BattleState(SDL_Surface *background, const PartyLayout &monstersLayout, const PartyLayout &heroesLayout, const graphics::Sprite *attackIcons, const graphics::Sprite *moveIcons, const graphics::Frame *heroTagFrame, const graphics::Frame *activeHeroTagFrame) + BattleState(SDL_Surface *background, const PartyLayout &monstersLayout, const PartyLayout &heroesLayout, const graphics::Sprite *attackIcons, const graphics::Sprite *moveIcons, const graphics::Frame *heroTagFrame, const graphics::Frame *activeHeroTagFrame, const graphics::Gauge *healthGauge, const graphics::Gauge *manaGauge, const graphics::Gauge *ikariGauge) : background(background) , monstersLayout(&monstersLayout) , heroesLayout(&heroesLayout) , heroTagFrame(heroTagFrame) , activeHeroTagFrame(activeHeroTagFrame) + , healthGauge(healthGauge) + , manaGauge(manaGauge) + , ikariGauge(ikariGauge) , attackTypeMenu(attackIcons) , moveMenu(moveIcons) , activeHero(-1) { } @@ -91,6 +95,9 @@ private: const PartyLayout *heroesLayout; const graphics::Frame *heroTagFrame; const graphics::Frame *activeHeroTagFrame; + const graphics::Gauge *healthGauge; + const graphics::Gauge *manaGauge; + const graphics::Gauge *ikariGauge; AttackTypeMenu attackTypeMenu; MoveMenu moveMenu; std::vector > monsterPositions;