]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/ConfigMenu.h
added config menu dummy
[l2e.git] / src / menu / ConfigMenu.h
diff --git a/src/menu/ConfigMenu.h b/src/menu/ConfigMenu.h
new file mode 100644 (file)
index 0000000..c3f96f0
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * ConfigMenu.h
+ *
+ *  Created on: Nov 29, 2012
+ *      Author: holy
+ */
+
+#ifndef MENU_CONFIGMENU_H_
+#define MENU_CONFIGMENU_H_
+
+#include "fwd.h"
+#include "../app/State.h"
+#include "../geometry/Vector.h"
+
+namespace menu {
+
+class ConfigMenu
+: public app::State {
+
+public:
+       explicit ConfigMenu(PartyMenu *parent);
+
+public:
+       virtual void HandleEvents(const app::Input &);
+       virtual void UpdateWorld(float deltaT);
+       virtual void Render(SDL_Surface *);
+
+public:
+       int Width() const;
+       int Height() const;
+
+private:
+       virtual void OnEnterState(SDL_Surface *screen);
+       virtual void OnExitState(SDL_Surface *screen);
+       virtual void OnResumeState(SDL_Surface *screen);
+       virtual void OnPauseState(SDL_Surface *screen);
+
+       virtual void OnResize(int width, int height);
+
+       void RenderHeadline(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
+       void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
+
+private:
+       PartyMenu *parent;
+
+};
+
+}
+
+#endif /* MENU_CONFIGMENU_H_ */