X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectMoveAction.cpp;h=351116bf0918e4e7aa434fcdc76accd7b412d941;hb=65158353d1ecbed0032752863c6c4eb96b1a084a;hp=7eb8fbeb1a8d98b860e692c12edaad6fc7d53cdc;hpb=8f6a2452408f4ae35396cd7008a6fab0ecb03a46;p=l2e.git diff --git a/src/battle/states/SelectMoveAction.cpp b/src/battle/states/SelectMoveAction.cpp index 7eb8fbe..351116b 100644 --- a/src/battle/states/SelectMoveAction.cpp +++ b/src/battle/states/SelectMoveAction.cpp @@ -14,28 +14,26 @@ #include "../MoveMenu.h" #include "../../app/Application.h" #include "../../app/Input.h" -#include "../../geometry/operators.h" using app::Application; using app::Input; -using geometry::Point; using geometry::Vector; namespace battle { -void SelectMoveAction::EnterState(Application &c, SDL_Surface *screen) { +void SelectMoveAction::OnEnterState(Application &c, SDL_Surface *screen) { ctrl = &c; } -void SelectMoveAction::ExitState(Application &c, SDL_Surface *screen) { +void SelectMoveAction::OnExitState(Application &c, SDL_Surface *screen) { ctrl = 0; } -void SelectMoveAction::ResumeState(Application &ctrl, SDL_Surface *screen) { +void SelectMoveAction::OnResumeState(Application &ctrl, SDL_Surface *screen) { } -void SelectMoveAction::PauseState(Application &ctrl, SDL_Surface *screen) { +void SelectMoveAction::OnPauseState(Application &ctrl, SDL_Surface *screen) { } @@ -83,7 +81,7 @@ void SelectMoveAction::Render(SDL_Surface *screen) { } void SelectMoveAction::RenderMenu(SDL_Surface *screen, const Vector &offset) { - Point position( + Vector position( (battle->Width() - battle->GetMoveMenu().Width()) / 2, battle->Height() - battle->GetMoveMenu().Height() - battle->GetMoveMenu().Height() / 2); battle->GetMoveMenu().Render(screen, position + offset);