X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FCapsuleNameMenu.h;h=2fd709a6590d549b03a5daa44266d5aeff9d908c;hb=ec824200aec12d6870b70304bcd2e2aeadba767b;hp=0021da4d5f2bb3bfc9aee2ab17e783b632e3daa1;hpb=67f6bb1d9727e7d1e2140cf2913aa89ebba84bf5;p=l2e.git diff --git a/src/menu/CapsuleNameMenu.h b/src/menu/CapsuleNameMenu.h index 0021da4..2fd709a 100644 --- a/src/menu/CapsuleNameMenu.h +++ b/src/menu/CapsuleNameMenu.h @@ -1,10 +1,19 @@ #ifndef MENU_CAPSULENAMEMENU_H_ #define MENU_CAPSULENAMEMENU_H_ -#include "fwd.h" +namespace common { + class Capsule; +} +namespace math { + template + class Vector; +} +namespace menu { + class CapsuleMenu; +} + #include "../app/State.h" -#include "../common/fwd.h" -#include "../geometry/Vector.h" +#include "../graphics/CharSelect.h" namespace menu { @@ -18,7 +27,7 @@ public: public: virtual void HandleEvents(const app::Input &); - virtual void UpdateWorld(float deltaT); + virtual void UpdateWorld(Uint32 deltaT); virtual void Render(SDL_Surface *); public: @@ -33,20 +42,25 @@ private: virtual void OnResize(int width, int height); + common::Capsule &GetCapsule(); const common::Capsule &GetCapsule() const; - void LoadInventory(); + void AddChar(); + void RemoveChar(); + void StoreName(); - void RenderName(SDL_Surface *screen, const geometry::Vector &offset) const; - void RenderAlphabet(SDL_Surface *screen, const geometry::Vector &offset) const; + void RenderName(SDL_Surface *screen, const math::Vector &offset) const; + void RenderAlphabet(SDL_Surface *screen, const math::Vector &offset) const; private: CapsuleMenu *parent; + graphics::CharSelect select; int cursor; char buffer[6]; + bool first; }; } -#endif /* MENU_CAPSULENAMEMENU_H_ */ +#endif