X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectIkari.h;h=9b46deb5e88a8305783cabff32eb67bd6b6dbd50;hb=087783315ac5955c17bb3b051c9351f321653df6;hp=8603a57f5f3258f657d588cbbbd7a8f401673d03;hpb=5ca18f73987fb3935ab34654cbbecf5eca4704cb;p=l2e.git diff --git a/src/battle/states/SelectIkari.h b/src/battle/states/SelectIkari.h index 8603a57..9b46deb 100644 --- a/src/battle/states/SelectIkari.h +++ b/src/battle/states/SelectIkari.h @@ -1,16 +1,13 @@ -/* - * SelectIkari.h - * - * Created on: Aug 9, 2012 - * Author: holy - */ - #ifndef BATTLE_SELECTIKARI_H_ #define BATTLE_SELECTIKARI_H_ -#include "../fwd.h" +namespace battle { + class Battle; + class SelectAttackType; +} + #include "../../app/State.h" -#include "../../geometry/Vector.h" +#include "../../math/Vector.h" namespace battle { @@ -19,12 +16,11 @@ 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 &); - virtual void UpdateWorld(float deltaT); + virtual void UpdateWorld(Uint32 deltaT); virtual void Render(SDL_Surface *); private: @@ -36,16 +32,20 @@ private: virtual void OnResize(int width, int height); private: - void RenderFrame(SDL_Surface *, const geometry::Vector &offset); - void RenderHeadline(SDL_Surface *, const geometry::Vector &offset); - void RenderMenu(SDL_Surface *, const geometry::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; }; } -#endif /* BATTLE_SELECTIKARI_H_ */ +#endif