1 #ifndef MENU_SPELLMENU_H_
2 #define MENU_SPELLMENU_H_
16 #include "../app/State.h"
17 #include "../graphics/Menu.h"
25 SpellMenu(PartyMenu *parent, int heroIndex);
28 virtual void HandleEvents(const app::Input &);
29 virtual void UpdateWorld(Uint32 deltaT);
30 virtual void Render(SDL_Surface *);
37 virtual void OnEnterState(SDL_Surface *screen);
38 virtual void OnExitState(SDL_Surface *screen);
39 virtual void OnResumeState(SDL_Surface *screen);
40 virtual void OnPauseState(SDL_Surface *screen);
42 virtual void OnResize(int width, int height);
44 common::Hero &GetHero();
45 const common::Hero &GetHero() const;
49 void RenderHighlight(SDL_Surface *screen, const math::Vector<int> &offset) const;
50 void RenderMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
51 void RenderSpells(SDL_Surface *screen, const math::Vector<int> &offset) const;
55 SDL_Surface *highlight;
61 graphics::Menu<Choice> actionMenu;
62 graphics::Menu<const common::Spell *> spellMenu;