]> 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 d14ec76e9a9c69467862558bb99aaf9f646d5c04..41a541e87c4ed78eb9d7401f9972df15ad6ad7df 100644 (file)
@@ -7,6 +7,7 @@ namespace battle {
 }
 
 #include "../../app/State.h"
+#include "../../common/Hero.h"
 #include "../../math/Vector.h"
 
 #include <string>
@@ -23,7 +24,8 @@ public:
                        BattleState *parent)
        : battle(battle)
        , parent(parent)
-       , cursor(0) { }
+       , cursor(0)
+       , stalling(false) { }
 
 public:
        virtual void HandleEvents(const app::Input &);
@@ -40,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);
 
@@ -52,6 +58,7 @@ private:
        math::Vector<int> frameSize;
        math::Vector<int> textPosition;
        int cursor;
+       bool stalling;
 
 };