X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectIkari.h;h=9b46deb5e88a8305783cabff32eb67bd6b6dbd50;hb=b7b7078d04007d5b86ab160288f88b57d76ea408;hp=43fa0cf1b4de65901e9505410082bccb6541294e;hpb=4309d259becd96ead792678257e910c03a6b4a3d;p=l2e.git diff --git a/src/battle/states/SelectIkari.h b/src/battle/states/SelectIkari.h index 43fa0cf..9b46deb 100644 --- a/src/battle/states/SelectIkari.h +++ b/src/battle/states/SelectIkari.h @@ -2,15 +2,12 @@ #define BATTLE_SELECTIKARI_H_ namespace battle { - class BattleState; + class Battle; class SelectAttackType; } -namespace math { - template - class Vector; -} #include "../../app/State.h" +#include "../../math/Vector.h" namespace battle { @@ -19,8 +16,7 @@ class SelectIkari : public app::State { public: - SelectIkari(BattleState *battle, SelectAttackType *parent) - : battle(battle), parent(parent) { } + SelectIkari(Battle *battle, SelectAttackType *parent); public: virtual void HandleEvents(const app::Input &); @@ -36,13 +32,17 @@ private: virtual void OnResize(int width, int height); private: - void RenderFrame(SDL_Surface *, const math::Vector &offset); - void RenderHeadline(SDL_Surface *, const math::Vector &offset); - void RenderMenu(SDL_Surface *, const math::Vector &offset); + void RenderFrame(SDL_Surface *); + void RenderHeadline(SDL_Surface *); + void RenderMenu(SDL_Surface *); private: - BattleState *battle; + Battle *battle; SelectAttackType *parent; + math::Vector framePosition; + math::Vector frameSize; + math::Vector headlinePosition; + math::Vector menuPosition; };