X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectItem.cpp;h=35a0c61ca9262bf2deebb68f6805133d9aa7f04a;hb=7252571fb926a187c4c40e8f4eec718f16d63ffa;hp=e0f6aebe4736e5ed3a9a156379668a3570136e5d;hpb=70641f2eb3f9fce8c89dcbf345e202050609a142;p=l2e.git diff --git a/src/battle/states/SelectItem.cpp b/src/battle/states/SelectItem.cpp index e0f6aeb..35a0c61 100644 --- a/src/battle/states/SelectItem.cpp +++ b/src/battle/states/SelectItem.cpp @@ -23,15 +23,15 @@ using graphics::Frame; namespace battle { -void SelectItem::EnterState(Application &c, SDL_Surface *screen) { +void SelectItem::OnEnterState(Application &c, SDL_Surface *screen) { ctrl = &c; } -void SelectItem::ExitState(Application &c, SDL_Surface *screen) { +void SelectItem::OnExitState(Application &c, SDL_Surface *screen) { ctrl = 0; } -void SelectItem::ResumeState(Application &ctrl, SDL_Surface *screen) { +void SelectItem::OnResumeState(Application &ctrl, SDL_Surface *screen) { if (battle->ActiveHero().GetAttackChoice().Selection().HasSelected()) { battle->ActiveHero().GetAttackChoice().SetType(AttackChoice::ITEM); battle->ActiveHero().GetAttackChoice().SetItem(battle->ItemMenu().Selected()); @@ -39,12 +39,12 @@ void SelectItem::ResumeState(Application &ctrl, SDL_Surface *screen) { } } -void SelectItem::PauseState(Application &ctrl, SDL_Surface *screen) { +void SelectItem::OnPauseState(Application &ctrl, SDL_Surface *screen) { } -void SelectItem::Resize(int width, int height) { +void SelectItem::OnResize(int width, int height) { }