]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/VictoryState.h
moved upgrade process to battle class
[l2e.git] / src / battle / states / VictoryState.h
index bb872a2774adf314370bca421dbbd8810a1eb2e5..6c3befeb3037f11892f3fcdb96019a63b2b50c7c 100644 (file)
@@ -5,8 +5,12 @@ namespace battle {
        class Battle;
        class BattleState;
 }
+namespace common {
+       class Upgrade;
+}
 
 #include "../../app/State.h"
+#include "../../common/Hero.h"
 #include "../../math/Vector.h"
 
 #include <string>
@@ -22,7 +26,9 @@ public:
                        Battle *battle,
                        BattleState *parent)
        : battle(battle)
-       , parent(parent) { }
+       , parent(parent)
+       , cursor(0)
+       , stalling(false) { }
 
 public:
        virtual void HandleEvents(const app::Input &);
@@ -39,6 +45,9 @@ private:
 
 private:
        void LoadResults();
+       void LoadResult(
+                       const common::Upgrade &,
+                       std::vector<std::string> &);
        void RenderFrame(SDL_Surface *screen);
        void RenderLines(SDL_Surface *screen);
 
@@ -50,6 +59,8 @@ private:
        math::Vector<int> framePosition;
        math::Vector<int> frameSize;
        math::Vector<int> textPosition;
+       int cursor;
+       bool stalling;
 
 };