]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/BattleState.h
tagged some TODOs
[l2e.git] / src / battle / BattleState.h
index 12c55f71856d1536cc12e432ec7cca0777f72b03..72342f0961e0616de36b058305a7fa30127722a5 100644 (file)
 #include <SDL.h>
 
 namespace app { class Input; }
-namespace graphics { class Sprite; }
+namespace graphics {
+       class Font;
+       class Frame;
+       class Gauge;
+       class Sprite;
+}
 
 namespace battle {
 
 class PartyLayout;
 
-// TODO: maybe split battle state into substates for each menu?
 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) { }
@@ -85,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<geometry::Point<int> > monsterPositions;