X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectSpell.cpp;h=e15fa2e5490710579ebda387b6bcdf436a392b52;hb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;hp=623181e81265339c855fdf57cc1e1b86c661d923;hpb=3f8fac16c7ae2cbe7da47b98aba9b558825723e7;p=l2e.git diff --git a/src/battle/states/SelectSpell.cpp b/src/battle/states/SelectSpell.cpp index 623181e..e15fa2e 100644 --- a/src/battle/states/SelectSpell.cpp +++ b/src/battle/states/SelectSpell.cpp @@ -19,28 +19,28 @@ using app::Application; using app::Input; using common::Spell; -using geometry::Vector; +using math::Vector; using graphics::Frame; namespace battle { -void SelectSpell::OnEnterState(Application &c, SDL_Surface *screen) { +void SelectSpell::OnEnterState(SDL_Surface *screen) { } -void SelectSpell::OnExitState(Application &c, SDL_Surface *screen) { +void SelectSpell::OnExitState(SDL_Surface *screen) { } -void SelectSpell::OnResumeState(Application &ctrl, SDL_Surface *screen) { +void SelectSpell::OnResumeState(SDL_Surface *screen) { if (battle->ActiveHero().GetAttackChoice().Selection().HasSelected()) { battle->ActiveHero().GetAttackChoice().SetType(AttackChoice::MAGIC); battle->ActiveHero().GetAttackChoice().SetSpell(battle->ActiveHero().SpellMenu().Selected()); - ctrl.PopState(); + Ctrl().PopState(); } } -void SelectSpell::OnPauseState(Application &ctrl, SDL_Surface *screen) { +void SelectSpell::OnPauseState(SDL_Surface *screen) { }