X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectAttackType.cpp;h=fade2326d305ff815f1c1cd4a55241e47d8bb273;hb=10a8d3a83e7ad6815bc9f752922239ef32073a5e;hp=31a0be0e2e853a6ddb90e623156d3621486981e8;hpb=3f8fac16c7ae2cbe7da47b98aba9b558825723e7;p=l2e.git diff --git a/src/battle/states/SelectAttackType.cpp b/src/battle/states/SelectAttackType.cpp index 31a0be0..fade232 100644 --- a/src/battle/states/SelectAttackType.cpp +++ b/src/battle/states/SelectAttackType.cpp @@ -27,26 +27,26 @@ using geometry::Vector; namespace battle { -void SelectAttackType::OnEnterState(Application &c, SDL_Surface *screen) { +void SelectAttackType::OnEnterState(SDL_Surface *screen) { } -void SelectAttackType::OnExitState(Application &c, SDL_Surface *screen) { +void SelectAttackType::OnExitState(SDL_Surface *screen) { } -void SelectAttackType::OnResumeState(Application &ctrl, SDL_Surface *screen) { +void SelectAttackType::OnResumeState(SDL_Surface *screen) { if (battle->ActiveHero().GetAttackChoice().Selection().HasSelected()) { battle->ActiveHero().GetAttackChoice().SetType(battle->GetAttackTypeMenu().Selected()); battle->NextHero(); } if (battle->AttackSelectionDone()) { // pass through - ctrl.PopState(); + Ctrl().PopState(); } } -void SelectAttackType::OnPauseState(Application &ctrl, SDL_Surface *screen) { +void SelectAttackType::OnPauseState(SDL_Surface *screen) { }