]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/VictoryState.h
feed victory messages from upgrade
[l2e.git] / src / battle / states / VictoryState.h
index bb872a2774adf314370bca421dbbd8810a1eb2e5..41a541e87c4ed78eb9d7401f9972df15ad6ad7df 100644 (file)
@@ -7,6 +7,7 @@ namespace battle {
 }
 
 #include "../../app/State.h"
+#include "../../common/Hero.h"
 #include "../../math/Vector.h"
 
 #include <string>
@@ -22,7 +23,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 +42,10 @@ private:
 
 private:
        void LoadResults();
+       void LoadResults(
+                       const char *,
+                       const std::vector<common::Hero::UpgradeInfo> &,
+                       std::vector<std::string> &);
        void RenderFrame(SDL_Surface *screen);
        void RenderLines(SDL_Surface *screen);
 
@@ -50,6 +57,8 @@ private:
        math::Vector<int> framePosition;
        math::Vector<int> frameSize;
        math::Vector<int> textPosition;
+       int cursor;
+       bool stalling;
 
 };