1 #ifndef MENU_CAPSULENAMEMENU_H_
2 #define MENU_CAPSULENAMEMENU_H_
15 #include "../app/State.h"
16 #include "../graphics/CharSelect.h"
26 explicit CapsuleNameMenu(CapsuleMenu *parent);
29 virtual void HandleEvents(const app::Input &);
30 virtual void UpdateWorld(Uint32 deltaT);
31 virtual void Render(SDL_Surface *);
38 virtual void OnEnterState(SDL_Surface *screen);
39 virtual void OnExitState(SDL_Surface *screen);
40 virtual void OnResumeState(SDL_Surface *screen);
41 virtual void OnPauseState(SDL_Surface *screen);
43 virtual void OnResize(int width, int height);
45 common::Capsule &GetCapsule();
46 const common::Capsule &GetCapsule() const;
52 void RenderName(SDL_Surface *screen, const math::Vector<int> &offset) const;
53 void RenderAlphabet(SDL_Surface *screen, const math::Vector<int> &offset) const;
57 graphics::CharSelect select;