X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FVictoryState.h;h=6c3befeb3037f11892f3fcdb96019a63b2b50c7c;hb=63a2a96b70a18d08a2714571f79fe7d99612cb9e;hp=bb872a2774adf314370bca421dbbd8810a1eb2e5;hpb=e1dab8a680a76f8621e967a693dbf2b481ba8f75;p=l2e.git diff --git a/src/battle/states/VictoryState.h b/src/battle/states/VictoryState.h index bb872a2..6c3befe 100644 --- a/src/battle/states/VictoryState.h +++ b/src/battle/states/VictoryState.h @@ -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 @@ -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 &); void RenderFrame(SDL_Surface *screen); void RenderLines(SDL_Surface *screen); @@ -50,6 +59,8 @@ private: math::Vector framePosition; math::Vector frameSize; math::Vector textPosition; + int cursor; + bool stalling; };