X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FAttackTypeMenu.cpp;h=16bda253dd86df85206e00ba3531e8f68b354bba;hb=11cf419b542070def1d0edaa69d2389ab1ab427b;hp=b18c5221021aca9c32b8618a74b1e0abba78e308;hpb=0542849dfccfec1ce1477265fa0fee2401a8fb23;p=l2e.git diff --git a/src/battle/AttackTypeMenu.cpp b/src/battle/AttackTypeMenu.cpp index b18c522..16bda25 100644 --- a/src/battle/AttackTypeMenu.cpp +++ b/src/battle/AttackTypeMenu.cpp @@ -1,10 +1,3 @@ -/* - * AttackTypeMenu.cpp - * - * Created on: Aug 6, 2012 - * Author: holy - */ - #include "AttackTypeMenu.h" #include "../geometry/Vector.h" @@ -15,11 +8,11 @@ using geometry::Vector; namespace battle { void AttackTypeMenu::Render(SDL_Surface *screen, const geometry::Vector &position) { - Vector swordOffset(IconWidth(), IconHeight()); - Vector magicOffset(IconWidth(), 0); - Vector defendOffset(2 * IconWidth(), IconHeight()); - Vector ikariOffset(IconWidth(), 2 * IconHeight()); - Vector itemOffset(0, IconHeight()); + const Vector &swordOffset(IconSize()); + const Vector magicOffset(IconWidth(), 0); + const Vector defendOffset(2 * IconWidth(), IconHeight()); + const Vector ikariOffset(IconWidth(), 2 * IconHeight()); + const Vector itemOffset(0, IconHeight()); icons->Draw(screen, position + swordOffset, AttackChoice::SWORD, (selected == AttackChoice::SWORD) ? 1 : 0); icons->Draw(screen, position + magicOffset, AttackChoice::MAGIC, (selected == AttackChoice::MAGIC) ? 1 : 0);