]> git.localhorst.tv Git - l2e.git/blob - src/battle/HeroTag.cpp
2461e4de92363b2a19b0c020e1dd5eb1ec6c64c1
[l2e.git] / src / battle / HeroTag.cpp
1 /*
2  * HeroTag.cpp
3  *
4  *  Created on: Aug 6, 2012
5  *      Author: holy
6  */
7
8 #include "HeroTag.h"
9
10 using geometry::Point;
11
12 namespace battle {
13
14 void HeroTag::Render(SDL_Surface *screen, int width, int height, Point<int> position) const {
15         SDL_Rect destRect;
16         destRect.x = position.X();
17         destRect.y = position.Y();
18         destRect.w = width;
19         destRect.h = height;
20
21         destRect.x += 1;
22         destRect.y += 1;
23         destRect.w -= 2;
24         destRect.h -= 2;
25         SDL_FillRect(screen, &destRect, SDL_MapRGB(screen->format, 0xFF, 0xFF, 0xFF));
26
27         destRect.x += 1;
28         destRect.y += 1;
29         destRect.w -= 2;
30         destRect.h -= 2;
31         SDL_FillRect(screen, &destRect, SDL_MapRGB(screen->format, 0, 0, 0));
32 }
33
34 }