X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FCapsuleFeedMenu.h;h=2a459e7fc14d867767049ffe67eea3b3680f72f6;hb=ec824200aec12d6870b70304bcd2e2aeadba767b;hp=8c75edd11e1d22712190458bc1c316971af90839;hpb=67f6bb1d9727e7d1e2140cf2913aa89ebba84bf5;p=l2e.git diff --git a/src/menu/CapsuleFeedMenu.h b/src/menu/CapsuleFeedMenu.h index 8c75edd..2a459e7 100644 --- a/src/menu/CapsuleFeedMenu.h +++ b/src/menu/CapsuleFeedMenu.h @@ -1,10 +1,19 @@ #ifndef MENU_CAPSULEFEEDMENU_H_ #define MENU_CAPSULEFEEDMENU_H_ -#include "fwd.h" +namespace common { + class Capsule; + class Item; +} +namespace math { + template + class Vector; +} +namespace menu { + class CapsuleMenu; +} + #include "../app/State.h" -#include "../common/fwd.h" -#include "../geometry/Vector.h" #include "../graphics/Menu.h" namespace menu { @@ -19,7 +28,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: @@ -34,15 +43,18 @@ private: virtual void OnResize(int width, int height); + common::Capsule &GetCapsule(); const common::Capsule &GetCapsule() const; void LoadInventory(); + void FeedSelected(); - void RenderName(SDL_Surface *screen, const geometry::Vector &offset) const; - void RenderSprite(SDL_Surface *screen, const geometry::Vector &offset) const; - void RenderHunger(SDL_Surface *screen, const geometry::Vector &offset) const; - void RenderMenu(SDL_Surface *screen, const geometry::Vector &offset) const; - void RenderItems(SDL_Surface *screen, const geometry::Vector &offset) const; + void RenderName(SDL_Surface *screen, const math::Vector &offset) const; + void RenderSprite(SDL_Surface *screen, const math::Vector &offset) const; + void RenderGrowth(SDL_Surface *screen, const math::Vector &offset) const; + void RenderHunger(SDL_Surface *screen, const math::Vector &offset) const; + void RenderMenu(SDL_Surface *screen, const math::Vector &offset) const; + void RenderItems(SDL_Surface *screen, const math::Vector &offset) const; private: CapsuleMenu *parent; @@ -57,4 +69,4 @@ private: } -#endif /* MENU_CAPSULEFEEDMENU_H_ */ +#endif