X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FConfigMenu.h;fp=src%2Fmenu%2FConfigMenu.h;h=c3f96f0cc108d283b4e1eb0f4d4d46d4cf9003dd;hb=a47b25a3a6631c8136fec6585a92b8756c68d243;hp=0000000000000000000000000000000000000000;hpb=2cbe53a143aa713b9c5d6157a1a9e48d4ed1a5d2;p=l2e.git diff --git a/src/menu/ConfigMenu.h b/src/menu/ConfigMenu.h new file mode 100644 index 0000000..c3f96f0 --- /dev/null +++ b/src/menu/ConfigMenu.h @@ -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 &offset) const; + void RenderMenu(SDL_Surface *screen, const geometry::Vector &offset) const; + +private: + PartyMenu *parent; + +}; + +} + +#endif /* MENU_CONFIGMENU_H_ */