X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FCapsuleMenu.h;h=1491f391d294b5e70cbdf479d6d4b3aff7a1f41f;hb=7a14d357d9d05c2bac1efcdcf57365a4ce13729a;hp=ad20b251b1b2d1d3b31559b68f5a6dfc350ce27a;hpb=10a8d3a83e7ad6815bc9f752922239ef32073a5e;p=l2e.git diff --git a/src/menu/CapsuleMenu.h b/src/menu/CapsuleMenu.h index ad20b25..1491f39 100644 --- a/src/menu/CapsuleMenu.h +++ b/src/menu/CapsuleMenu.h @@ -20,7 +20,21 @@ public: virtual void UpdateWorld(float deltaT); virtual void Render(SDL_Surface *); + void RenderBackground(SDL_Surface *screen) const; + void RenderCapsule(SDL_Surface *screen, const geometry::Vector &offset) const; + void RenderInfo(SDL_Surface *screen, const geometry::Vector &offset) const; + void RenderWheel(SDL_Surface *screen, const geometry::Vector &offset) const; + void RenderStats(SDL_Surface *screen, const geometry::Vector &offset) const; + void RenderStatsLine(SDL_Surface *screen, const geometry::Vector &offset, const char *name, int value) const; + void RenderMenu(SDL_Surface *screen, const geometry::Vector &offset) const; + public: + common::GameConfig &Game(); + const common::GameConfig &Game() const; + Resources &Res(); + const Resources &Res() const; + const common::Capsule &GetCapsule() const; + int Width() const; int Height() const; @@ -32,13 +46,14 @@ private: virtual void OnResize(int width, int height); - const common::Capsule &GetCapsule() const; - - void RenderBackground(SDL_Surface *screen) const; - private: PartyMenu *parent; - graphics::Menu menu; + enum Choice { + CHOICE_FEED, + CHOICE_CHANGE, + CHOICE_NAME, + }; + graphics::Menu menu; };