X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectItem.cpp;h=b64311640020055369f1d692726799c324d3d302;hb=06db9f596cd1c5aa4c0832b387882f7c74c1b4c0;hp=fe6ce7b3ba7dc9fa8e1addc5382883012317e3d0;hpb=3f8fac16c7ae2cbe7da47b98aba9b558825723e7;p=l2e.git diff --git a/src/battle/states/SelectItem.cpp b/src/battle/states/SelectItem.cpp index fe6ce7b..b643116 100644 --- a/src/battle/states/SelectItem.cpp +++ b/src/battle/states/SelectItem.cpp @@ -18,28 +18,28 @@ using app::Application; using app::Input; using common::Item; -using geometry::Vector; +using math::Vector; using graphics::Frame; namespace battle { -void SelectItem::OnEnterState(Application &c, SDL_Surface *screen) { +void SelectItem::OnEnterState(SDL_Surface *screen) { } -void SelectItem::OnExitState(Application &c, SDL_Surface *screen) { +void SelectItem::OnExitState(SDL_Surface *screen) { } -void SelectItem::OnResumeState(Application &ctrl, SDL_Surface *screen) { +void SelectItem::OnResumeState(SDL_Surface *screen) { if (battle->ActiveHero().GetAttackChoice().Selection().HasSelected()) { battle->ActiveHero().GetAttackChoice().SetType(AttackChoice::ITEM); battle->ActiveHero().GetAttackChoice().SetItem(battle->ItemMenu().Selected()); - ctrl.PopState(); + Ctrl().PopState(); } } -void SelectItem::OnPauseState(Application &ctrl, SDL_Surface *screen) { +void SelectItem::OnPauseState(SDL_Surface *screen) { }