]> 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 d14ec76e9a9c69467862558bb99aaf9f646d5c04..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>
@@ -23,7 +27,8 @@ public:
                        BattleState *parent)
        : battle(battle)
        , parent(parent)
-       , cursor(0) { }
+       , cursor(0)
+       , stalling(false) { }
 
 public:
        virtual void HandleEvents(const app::Input &);
@@ -40,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);
 
@@ -52,6 +60,7 @@ private:
        math::Vector<int> frameSize;
        math::Vector<int> textPosition;
        int cursor;
+       bool stalling;
 
 };