X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectTarget.cpp;h=4645f6debd37dfaf50ad2c450c6725800b35c52d;hb=2ccc2369d32fb680a3047519d79c17de34c4e10a;hp=f15f4558cd8ab8c32e6fe114ba7875b39036a629;hpb=0542849dfccfec1ce1477265fa0fee2401a8fb23;p=l2e.git diff --git a/src/battle/states/SelectTarget.cpp b/src/battle/states/SelectTarget.cpp index f15f455..4645f6d 100644 --- a/src/battle/states/SelectTarget.cpp +++ b/src/battle/states/SelectTarget.cpp @@ -19,24 +19,24 @@ using std::vector; namespace battle { -void SelectTarget::EnterState(Application &c, SDL_Surface *screen) { +void SelectTarget::OnEnterState(Application &c, SDL_Surface *screen) { ctrl = &c; } -void SelectTarget::ExitState(Application &c, SDL_Surface *screen) { +void SelectTarget::OnExitState(Application &c, SDL_Surface *screen) { ctrl = 0; } -void SelectTarget::ResumeState(Application &ctrl, SDL_Surface *screen) { +void SelectTarget::OnResumeState(Application &ctrl, SDL_Surface *screen) { } -void SelectTarget::PauseState(Application &ctrl, SDL_Surface *screen) { +void SelectTarget::OnPauseState(Application &ctrl, SDL_Surface *screen) { } -void SelectTarget::Resize(int width, int height) { +void SelectTarget::OnResize(int width, int height) { } @@ -86,7 +86,6 @@ void SelectTarget::Render(SDL_Surface *screen) { } void SelectTarget::RenderCursors(SDL_Surface *screen, const geometry::Vector &offset) { - // TODO: this should be related to the enemy's width Vector cursorOffset(cursorIcon->Width() / -2, cursorIcon->Height()); // offset the indicator by 1/8th to the right and top Vector indicatorOffset(cursorOffset + Vector(cursorIcon->Width() / 8, cursorIcon->Height() / -8));