X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectSpell.cpp;h=b1053d00eedf071cc2f52112b00b55a156a70482;hb=4309d259becd96ead792678257e910c03a6b4a3d;hp=623181e81265339c855fdf57cc1e1b86c661d923;hpb=3f8fac16c7ae2cbe7da47b98aba9b558825723e7;p=l2e.git diff --git a/src/battle/states/SelectSpell.cpp b/src/battle/states/SelectSpell.cpp index 623181e..b1053d0 100644 --- a/src/battle/states/SelectSpell.cpp +++ b/src/battle/states/SelectSpell.cpp @@ -1,10 +1,3 @@ -/* - * SelectSpell.cpp - * - * Created on: Aug 8, 2012 - * Author: holy - */ - #include "SelectSpell.h" #include "SelectAttackType.h" @@ -15,32 +8,33 @@ #include "../../app/Input.h" #include "../../common/Spell.h" #include "../../graphics/Frame.h" +#include "../../math/Vector.h" 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) { } @@ -93,7 +87,7 @@ void SelectSpell::HandleEvents(const Input &input) { } } -void SelectSpell::UpdateWorld(float deltaT) { +void SelectSpell::UpdateWorld(Uint32 deltaT) { }