#include "fwd.h"
#include "../app/State.h"
#include "../common/fwd.h"
-#include "../geometry/Vector.h"
+#include "../math/Vector.h"
#include "../graphics/Menu.h"
namespace menu {
public:
virtual void HandleEvents(const app::Input &);
- virtual void UpdateWorld(float deltaT);
+ virtual void UpdateWorld(Uint32 deltaT);
virtual void Render(SDL_Surface *);
+ void RenderBackground(SDL_Surface *screen) const;
+ void RenderCapsule(SDL_Surface *screen, const math::Vector<int> &offset) const;
+ void RenderInfo(SDL_Surface *screen, const math::Vector<int> &offset) const;
+ void RenderWheel(SDL_Surface *screen, const math::Vector<int> &offset) const;
+ void RenderStats(SDL_Surface *screen, const math::Vector<int> &offset) const;
+ void RenderStatsLine(SDL_Surface *screen, const math::Vector<int> &offset, const char *name, int value) const;
+ void RenderMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
+
public:
+ common::GameConfig &Game();
+ const common::GameConfig &Game() const;
+ Resources &Res();
+ const Resources &Res() const;
+ common::Capsule &GetCapsule();
+ const common::Capsule &GetCapsule() const;
+
int Width() const;
int Height() const;
virtual void OnResize(int width, int height);
- const common::Capsule &GetCapsule() const;
-
- void RenderBackground(SDL_Surface *screen) const;
- void RenderCapsule(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
- void RenderInfo(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
- void RenderWheel(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
- void RenderStats(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
- void RenderStatsLine(SDL_Surface *screen, const geometry::Vector<int> &offset, const char *name, int value) const;
- void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
-
private:
PartyMenu *parent;
- graphics::Menu<int> menu;
+ enum Choice {
+ CHOICE_FEED,
+ CHOICE_CHANGE,
+ CHOICE_NAME,
+ };
+ graphics::Menu<Choice> menu;
};