4 * Created on: Aug 7, 2012
10 #include "../geometry/operators.h"
11 #include "../geometry/Vector.h"
12 #include "../graphics/Sprite.h"
14 using geometry::Point;
15 using geometry::Vector;
19 void MoveMenu::Render(SDL_Surface *screen, const geometry::Point<int> &position) {
20 Vector<int> attackOffset(0, IconHeight());
21 Vector<int> changeOffset(0, 0);
22 Vector<int> runOffset(0, 2 * IconHeight());
24 icons->Draw(screen, position + attackOffset, ATTACK, (selected == ATTACK) ? 1 : 0);
25 icons->Draw(screen, position + changeOffset, CHANGE, (selected == CHANGE) ? 1 : 0);
26 icons->Draw(screen, position + runOffset, RUN, (selected == RUN) ? 1 : 0);