X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FStatusMenu.cpp;h=b2435edbea1cf34de405a82a59a8adeb200fcf1e;hb=b7b7078d04007d5b86ab160288f88b57d76ea408;hp=55ba56eb92487787daf98b08ec12c80eec7930f7;hpb=cc3d698b8c1ad09d7a3f9e3f28bc84e0ac1735ea;p=l2e.git diff --git a/src/menu/StatusMenu.cpp b/src/menu/StatusMenu.cpp index 55ba56e..b2435ed 100644 --- a/src/menu/StatusMenu.cpp +++ b/src/menu/StatusMenu.cpp @@ -12,12 +12,13 @@ #include "../common/Stats.h" #include "../graphics/Font.h" #include "../graphics/Frame.h" +#include "../math/Vector.h" using app::Input; using common::Hero; using common::Item; using common::Stats; -using geometry::Vector; +using math::Vector; using graphics::Font; using graphics::Frame; @@ -33,7 +34,7 @@ StatusMenu::StatusMenu(PartyMenu *parent, int cursor) void StatusMenu::OnEnterState(SDL_Surface *) { - + menu.StartAnimation(Ctrl()); } void StatusMenu::OnExitState(SDL_Surface *) { @@ -81,7 +82,7 @@ void StatusMenu::HandleEvents(const Input &input) { } } -void StatusMenu::UpdateWorld(float deltaT) { +void StatusMenu::UpdateWorld(Uint32 deltaT) { } @@ -190,7 +191,7 @@ void StatusMenu::RenderEquipmentLine(const Item *item, SDL_Surface *screen, cons } } -void StatusMenu::RenderExperience(SDL_Surface *screen, const geometry::Vector &offset) const { +void StatusMenu::RenderExperience(SDL_Surface *screen, const math::Vector &offset) const { const Font &font(*parent->Res().statusFont); font.DrawStringRight(parent->Res().experienceLabel, screen, offset, 10); @@ -198,7 +199,7 @@ void StatusMenu::RenderExperience(SDL_Surface *screen, const geometry::Vector &offset) const { +void StatusMenu::RenderNextLevel(SDL_Surface *screen, const math::Vector &offset) const { const Font &font(*parent->Res().statusFont); font.DrawStringRight(parent->Res().nextLevelLabel, screen, offset, 10); @@ -206,7 +207,7 @@ void StatusMenu::RenderNextLevel(SDL_Surface *screen, const geometry::Vector &offset) const { +void StatusMenu::RenderIkari(SDL_Surface *screen, const math::Vector &offset) const { const Font &font(*parent->Res().statusFont); font.DrawString(parent->Res().ipLabel, screen, offset, 5); @@ -217,7 +218,7 @@ void StatusMenu::RenderIkari(SDL_Surface *screen, const geometry::Vector &o font.DrawChar('%', screen, percentOffset); } -void StatusMenu::RenderMenu(SDL_Surface *screen, const geometry::Vector &offset) const { +void StatusMenu::RenderMenu(SDL_Surface *screen, const math::Vector &offset) const { const Font &font(*parent->Res().normalFont); const Frame &frame(*parent->Res().statusFrame);