X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.h;h=72342f0961e0616de36b058305a7fa30127722a5;hb=7b2600e51a05efe1c102389a25b8123f30a972b0;hp=42094d66bec33c70422b967dc30c535f7910acc8;hpb=9413020156a8eecdb56879510d1216e894a9331f;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index 42094d6..72342f0 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -22,7 +22,12 @@ #include namespace app { class Input; } -namespace graphics { class Sprite; } +namespace graphics { + class Font; + class Frame; + class Gauge; + class Sprite; +} namespace battle { @@ -32,10 +37,17 @@ class BattleState : public app::State { public: - BattleState(SDL_Surface *background, const PartyLayout &monstersLayout, const PartyLayout &heroesLayout, const graphics::Sprite *attackIcons, const graphics::Sprite *moveIcons) + 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, const graphics::Sprite *heroTagSprites, const graphics::Font *heroTagFont) : background(background) , monstersLayout(&monstersLayout) , heroesLayout(&heroesLayout) + , heroTagFrame(heroTagFrame) + , activeHeroTagFrame(activeHeroTagFrame) + , healthGauge(healthGauge) + , manaGauge(manaGauge) + , ikariGauge(ikariGauge) + , heroTagSprites(heroTagSprites) + , heroTagFont(heroTagFont) , attackTypeMenu(attackIcons) , moveMenu(moveIcons) , activeHero(-1) { } @@ -84,6 +96,13 @@ private: SDL_Surface *background; const PartyLayout *monstersLayout; const PartyLayout *heroesLayout; + const graphics::Frame *heroTagFrame; + const graphics::Frame *activeHeroTagFrame; + const graphics::Gauge *healthGauge; + const graphics::Gauge *manaGauge; + const graphics::Gauge *ikariGauge; + const graphics::Sprite *heroTagSprites; + const graphics::Font *heroTagFont; AttackTypeMenu attackTypeMenu; MoveMenu moveMenu; std::vector > monsterPositions;