]> git.localhorst.tv Git - l2e.git/blob - src/battle/MoveMenu.cpp
found another letter of the large font
[l2e.git] / src / battle / MoveMenu.cpp
1 /*
2  * MoveMenu.cpp
3  *
4  *  Created on: Aug 7, 2012
5  *      Author: holy
6  */
7
8 #include "MoveMenu.h"
9
10 #include "../geometry/operators.h"
11 #include "../geometry/Vector.h"
12 #include "../graphics/Sprite.h"
13
14 using geometry::Point;
15 using geometry::Vector;
16
17 namespace battle {
18
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());
23
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);
27 }
28
29 }