]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/SelectMoveAction.h
split battle state into (so far) 2 states
[l2e.git] / src / battle / states / SelectMoveAction.h
diff --git a/src/battle/states/SelectMoveAction.h b/src/battle/states/SelectMoveAction.h
new file mode 100644 (file)
index 0000000..c135663
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * SelectMoveAction.h
+ *
+ *  Created on: Aug 7, 2012
+ *      Author: holy
+ */
+
+#ifndef BATTLE_SELECTMOVEACTION_H_
+#define BATTLE_SELECTMOVEACTION_H_
+
+#include "../../app/State.h"
+#include "../../geometry/Vector.h"
+
+namespace battle {
+
+class BattleState;
+class MoveMenu;
+
+class SelectMoveAction
+: public app::State {
+
+public:
+       explicit SelectMoveAction(BattleState *battle)
+       : ctrl(0), battle(battle) { }
+       ~SelectMoveAction() { }
+
+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<int> &offset);
+
+private:
+       app::Application *ctrl;
+       BattleState *battle;
+
+};
+
+}
+
+#endif /* BATTLE_SELECTMOVEACTION_H_ */