]> git.localhorst.tv Git - l2e.git/blob - src/graphics/CharSelect.h
removed useless comments
[l2e.git] / src / graphics / CharSelect.h
1 #ifndef GRAPHICS_CHARSELECT_H_
2 #define GRAPHICS_CHARSELECT_H_
3
4 #include "../math/Vector.h"
5
6 #include <SDL.h>
7
8 namespace graphics {
9
10 class Font;
11 class Sprite;
12
13 class CharSelect {
14
15 public:
16         CharSelect();
17
18         static const int TYPE_ID = 411;
19
20 public:
21         void Draw(SDL_Surface *screen, const math::Vector<int> &position) const;
22
23         void NextCol();
24         void PreviousCol();
25         void NextRow();
26         void PreviousRow();
27
28         char Selected() const;
29
30 public:
31         static void CreateTypeDescription();
32         static void Construct(void *);
33         static void Load(void *);
34
35 private:
36         const Font *font;
37         const Sprite *cursor;
38         const char *chars;
39         int numChars;
40
41         int width;
42         int groupX;
43         int groupY;
44
45         int selected;
46
47 };
48
49 }
50
51 #endif