]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/TransitionState.h
removed useless comments
[l2e.git] / src / map / TransitionState.h
index ee832a81a482391a1fffb3c693bb0a17c17adc2c..9a73ae5c3019385a92257d9944e2a8fdaac6d218 100644 (file)
@@ -1,16 +1,16 @@
-/*
- * TransitionState.h
- *
- *  Created on: Oct 7, 2012
- *      Author: holy
- */
-
 #ifndef MAP_TRANSITIONSTATE_H_
 #define MAP_TRANSITIONSTATE_H_
 
-#include "fwd.h"
+namespace map {
+       class Map;
+       class MapState;
+}
+namespace math {
+       template<class>
+       class Vector;
+}
+
 #include "../app/State.h"
-#include "../geometry/Vector.h"
 
 namespace map {
 
@@ -18,29 +18,29 @@ class TransitionState
 : public app::State {
 
 public:
-       TransitionState(MapState *, Map *, const geometry::Vector<int> &);
+       TransitionState(MapState *, Map *, const math::Vector<int> &);
        virtual ~TransitionState() { }
 
 public:
-       virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
-       virtual void ExitState(app::Application &ctrl, SDL_Surface *screen);
-       virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen);
-       virtual void PauseState(app::Application &ctrl, SDL_Surface *screen);
-
-       virtual void Resize(int width, int height);
-
        virtual void HandleEvents(const app::Input &);
-       virtual void UpdateWorld(float deltaT);
+       virtual void UpdateWorld(Uint32 deltaT);
        virtual void Render(SDL_Surface *);
 
 private:
-       app::Application *ctrl;
+       virtual void OnEnterState(SDL_Surface *screen);
+       virtual void OnExitState(SDL_Surface *screen);
+       virtual void OnResumeState(SDL_Surface *screen);
+       virtual void OnPauseState(SDL_Surface *screen);
+
+       virtual void OnResize(int width, int height);
+
+private:
        MapState *ms;
        Map *map;
-       const geometry::Vector<int> &coordinates;
+       const math::Vector<int> &coordinates;
 
 };
 
 }
 
-#endif /* MAP_TRANSITIONSTATE_H_ */
+#endif