-/*
- * 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>
: 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:
void RenderCursor(SDL_Surface *screen) const;
private:
- PartyMenu *parent;
+ app::State *parent;
+ PartyMenu *partyMenu;
+ void *ref;
Callback callback;
app::Timer<Uint32> cursorBlink;
int cursor;
}
-#endif /* MENU_SELECTHERO_H_ */
+#endif