X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FCapsuleMenu.cpp;h=b45a204a9366514af10046ac8127ffbd8f83d1d4;hb=ec824200aec12d6870b70304bcd2e2aeadba767b;hp=564b3bf5df928503418b20957b97d3d9020d7207;hpb=988ba6d1b4e18a4ae5d30a892224f76cee2355cc;p=l2e.git diff --git a/src/menu/CapsuleMenu.cpp b/src/menu/CapsuleMenu.cpp index 564b3bf..b45a204 100644 --- a/src/menu/CapsuleMenu.cpp +++ b/src/menu/CapsuleMenu.cpp @@ -14,11 +14,12 @@ #include "../graphics/Font.h" #include "../graphics/Frame.h" #include "../graphics/Texture.h" +#include "../math/Vector.h" using app::Input; using common::Capsule; using common::Stats; -using geometry::Vector; +using math::Vector; using graphics::Font; using graphics::Frame; @@ -34,7 +35,7 @@ CapsuleMenu::CapsuleMenu(PartyMenu *parent) void CapsuleMenu::OnEnterState(SDL_Surface *) { - + menu.StartAnimation(Ctrl()); } void CapsuleMenu::OnExitState(SDL_Surface *) { @@ -83,7 +84,7 @@ void CapsuleMenu::HandleEvents(const Input &input) { } } -void CapsuleMenu::UpdateWorld(float deltaT) { +void CapsuleMenu::UpdateWorld(Uint32 deltaT) { } @@ -220,7 +221,7 @@ void CapsuleMenu::RenderStats(SDL_Surface *screen, const Vector &offset) co font.DrawNumberRight(capsule.NextLevel(), screen, lineHead); } -void CapsuleMenu::RenderStatsLine(SDL_Surface *screen, const geometry::Vector &offset, const char *name, int value) const { +void CapsuleMenu::RenderStatsLine(SDL_Surface *screen, const math::Vector &offset, const char *name, int value) const { const Font &font(*Res().statusFont); const Vector numberOffset(4 * font.CharWidth(), 0);