-/*
- * SelectSpell.h
- *
- * Created on: Aug 8, 2012
- * Author: holy
- */
-
#ifndef BATTLE_SELECTSPELL_H_
#define BATTLE_SELECTSPELL_H_
-#include "../fwd.h"
+namespace battle {
+ class Battle;
+ class SelectAttackType;
+}
+
#include "../../app/State.h"
#include "../../math/Vector.h"
: public app::State {
public:
- SelectSpell(BattleState *battle, SelectAttackType *parent)
- : battle(battle), parent(parent) { }
+ SelectSpell(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:
virtual void OnResize(int width, int height);
private:
- void RenderFrame(SDL_Surface *, const math::Vector<int> &offset);
- void RenderHeadline(SDL_Surface *, const math::Vector<int> &offset);
- void RenderMenu(SDL_Surface *, const math::Vector<int> &offset);
+ void RenderFrame(SDL_Surface *);
+ void RenderHeadline(SDL_Surface *);
+ void RenderMenu(SDL_Surface *);
private:
- BattleState *battle;
+ Battle *battle;
SelectAttackType *parent;
+ math::Vector<int> framePosition;
+ math::Vector<int> frameSize;
+ math::Vector<int> headlinePosition;
+ math::Vector<int> menuPosition;
};
}
-#endif /* BATTLE_SELECTSPELL_H_ */
+#endif