]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/SelectHero.h
removed lazy fwd headers
[l2e.git] / src / menu / SelectHero.h
index 82283871c8a14a9c3f79b7b68bf72274183118a6..9548045f1f6a148beb3168e951bbd470dba828d2 100644 (file)
@@ -1,17 +1,16 @@
-/*
- * SelectHero.h
- *
- *  Created on: Oct 22, 2012
- *      Author: holy
- */
-
 #ifndef MENU_SELECTHERO_H_
 #define MENU_SELECTHERO_H_
 
-#include "fwd.h"
+namespace common {
+       struct GameConfig;
+}
+namespace menu {
+       class PartyMenu;
+       struct Resources;
+}
+
 #include "../app/State.h"
 #include "../app/Timer.h"
-#include "../common/fwd.h"
 
 #include <SDL.h>
 
@@ -21,14 +20,14 @@ class SelectHero
 : public app::State {
 
 public:
-       typedef void (*Callback)(PartyMenu *, int selection);
+       typedef void (*Callback)(void *, int selection);
 
 public:
-       explicit SelectHero(PartyMenu *parent, Callback, int initialHero = 0);
+       SelectHero(app::State *parent, PartyMenu *partyMenu, void *ref, Callback, int initialHero = 0);
 
 public:
        virtual void HandleEvents(const app::Input &);
-       virtual void UpdateWorld(float deltaT);
+       virtual void UpdateWorld(Uint32 deltaT);
        virtual void Render(SDL_Surface *);
 
 private:
@@ -53,7 +52,9 @@ private:
        void RenderCursor(SDL_Surface *screen) const;
 
 private:
-       PartyMenu *parent;
+       app::State *parent;
+       PartyMenu *partyMenu;
+       void *ref;
        Callback callback;
        app::Timer<Uint32> cursorBlink;
        int cursor;