]> git.localhorst.tv Git - l2e.git/blobdiff - src/app/State.h
better handling of nested state changes
[l2e.git] / src / app / State.h
index b4c26d047cd7c88429e62d56a164be048fdcd7aa..958e423c508b1dffd4d2a6562bb4ba90051894c1 100644 (file)
@@ -8,15 +8,13 @@
 #ifndef APP_APPLICATIONSTATE_H_
 #define APP_APPLICATIONSTATE_H_
 
+#include "fwd.h"
 #include "Timer.h"
 
 #include <SDL.h>
 
 namespace app {
 
-class Application;
-class Input;
-
 class State {
 
 public:
@@ -38,7 +36,7 @@ public:
        /// adapt the state's graphics to given dimensions
        virtual void Resize(int width, int height) = 0;
 
-       virtual void HandleInput(const Input &) = 0;
+       virtual void HandleEvents(const Input &) = 0;
        virtual void UpdateWorld(float deltaT) = 0;
        virtual void Render(SDL_Surface *) = 0;