-/*
- * RunState.cpp
- *
- * Created on: Aug 10, 2012
- * Author: holy
- */
-
#include "RunState.h"
#include "../BattleState.h"
#include "../../app/Application.h"
#include "../../app/Input.h"
-#include "../../geometry/Vector.h"
+#include "../../math/Vector.h"
#include "../../graphics/Font.h"
#include "../../graphics/Frame.h"
using app::Application;
using app::Input;
-using geometry::Vector;
+using math::Vector;
namespace battle {
-void RunState::OnEnterState(Application &c, SDL_Surface *screen) {
- ctrl = &c;
+void RunState::OnEnterState(SDL_Surface *screen) {
+
}
-void RunState::OnExitState(Application &c, SDL_Surface *screen) {
- ctrl = 0;
+void RunState::OnExitState(SDL_Surface *screen) {
+
}
-void RunState::OnResumeState(Application &ctrl, SDL_Surface *screen) {
+void RunState::OnResumeState(SDL_Surface *screen) {
timer = GraphicsTimers().StartCountdown(2500);
}
-void RunState::OnPauseState(Application &ctrl, SDL_Surface *screen) {
+void RunState::OnPauseState(SDL_Surface *screen) {
}
-void RunState::Resize(int width, int height) {
+void RunState::OnResize(int width, int height) {
}
void RunState::HandleEvents(const Input &input) {
if (timer.Finished()) {
battle->SetRunaway();
- ctrl->PopState(); // pop self
+ Ctrl().PopState(); // pop self
}
}
-void RunState::UpdateWorld(float deltaT) {
+void RunState::UpdateWorld(Uint32 deltaT) {
}