]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/CapsuleNameMenu.h
removed lazy fwd headers
[l2e.git] / src / menu / CapsuleNameMenu.h
index 0021da4d5f2bb3bfc9aee2ab17e783b632e3daa1..4bc4d011ddf37c2c09ef75ba80589ca3d3e01748 100644 (file)
@@ -1,10 +1,19 @@
 #ifndef MENU_CAPSULENAMEMENU_H_
 #define MENU_CAPSULENAMEMENU_H_
 
-#include "fwd.h"
+namespace common {
+       class Capsule;
+}
+namespace math {
+       template<class>
+       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,17 +42,22 @@ 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<int> &offset) const;
-       void RenderAlphabet(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
+       void RenderName(SDL_Surface *screen, const math::Vector<int> &offset) const;
+       void RenderAlphabet(SDL_Surface *screen, const math::Vector<int> &offset) const;
 
 private:
        CapsuleMenu *parent;
+       graphics::CharSelect select;
        int cursor;
        char buffer[6];
+       bool first;
 
 };