X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectAttackType.h;fp=src%2Fbattle%2Fstates%2FSelectAttackType.h;h=3b101881ff5d22e123438569e409b9252d53f5c5;hb=558fd3d14ad1a9dc347998691a0b300fd334a16a;hp=0000000000000000000000000000000000000000;hpb=628b3a7276d0b330719e05504b23bafcf88f8fca;p=l2e.git diff --git a/src/battle/states/SelectAttackType.h b/src/battle/states/SelectAttackType.h new file mode 100644 index 0000000..3b10188 --- /dev/null +++ b/src/battle/states/SelectAttackType.h @@ -0,0 +1,47 @@ +/* + * SelectAttackType.h + * + * Created on: Aug 7, 2012 + * Author: holy + */ + +#ifndef BATTLE_SELECTATTACKTYPE_H_ +#define BATTLE_SELECTATTACKTYPE_H_ + +#include "../../app/State.h" +#include "../../geometry/Vector.h" + +namespace battle { + +class AttackTypeMenu; +class BattleState; + +class SelectAttackType +: public app::State { + +public: + explicit SelectAttackType(BattleState *battle) + : ctrl(0), battle(battle) { } + ~SelectAttackType() { } + +public: + virtual void EnterState(app::Application &ctrl, SDL_Surface *screen); + virtual void ExitState(); + + virtual void Resize(int width, int height); + + virtual void HandleInput(const app::Input &); + virtual void UpdateWorld(float deltaT); + virtual void Render(SDL_Surface *); + +private: + void RenderMenu(SDL_Surface *screen, const geometry::Vector &offset); + +private: + app::Application *ctrl; + BattleState *battle; + +}; + +} +#endif /* BATTLE_SELECTATTACKTYPE_H_ */