]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/RunState.cpp
removed useless comments
[l2e.git] / src / battle / states / RunState.cpp
index dbf38680d55671ab69ba6057e5bc23eaab0e0398..7e7dfc49b5ceb04262287a8c04886d39cd9027ed 100644 (file)
@@ -1,16 +1,9 @@
-/*
- * 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) {
 
 }
 
@@ -47,12 +40,12 @@ 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) {
 
 }