X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectAttackType.cpp;h=20ab7a4db4f05b90271797217940d0622553d49e;hb=d7d5ff97b2e4136141f5603d0ec9cef1d4467749;hp=31a0be0e2e853a6ddb90e623156d3621486981e8;hpb=3f8fac16c7ae2cbe7da47b98aba9b558825723e7;p=l2e.git diff --git a/src/battle/states/SelectAttackType.cpp b/src/battle/states/SelectAttackType.cpp index 31a0be0..20ab7a4 100644 --- a/src/battle/states/SelectAttackType.cpp +++ b/src/battle/states/SelectAttackType.cpp @@ -1,10 +1,3 @@ -/* - * SelectAttackType.cpp - * - * Created on: Aug 7, 2012 - * Author: holy - */ - #include "SelectAttackType.h" #include "SelectIkari.h" @@ -17,36 +10,37 @@ #include "../../app/Application.h" #include "../../app/Input.h" #include "../../common/Item.h" +#include "../../math/Vector.h" #include using app::Application; using app::Input; using common::Item; -using geometry::Vector; +using math::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) { } @@ -121,7 +115,7 @@ void SelectAttackType::HandleEvents(const Input &input) { } } -void SelectAttackType::UpdateWorld(float deltaT) { +void SelectAttackType::UpdateWorld(Uint32 deltaT) { }