]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/SelectHero.h
removed stupid file headers that eclipse put in
[l2e.git] / src / menu / SelectHero.h
index 82283871c8a14a9c3f79b7b68bf72274183118a6..77891908d70f0f62c4e0a783fb8a54a10608d98a 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * SelectHero.h
- *
- *  Created on: Oct 22, 2012
- *      Author: holy
- */
-
 #ifndef MENU_SELECTHERO_H_
 #define MENU_SELECTHERO_H_
 
@@ -21,10 +14,10 @@ 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 &);
@@ -53,7 +46,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;