Debian Codegraph @

Oodle/src/CMenu.h

raw
1 #ifndef _CMENU_
2 #define _CMENU_
3
4 #include "CSurface.h"
5 #include "CVector.h"
6 #include "CSprite.h"
7 #include "CMenuButton.h"
8
9 class CMenu
10 {
11 public:
12 ~CMenu();
13 CMenu(list<CMenuButton*> &buttons, CSprite* cursor, CSurface* background);
14 CMenu(list<string> &text, list<CSprite*> &icons, const CVector &pos, CSprite* cursor, CSurface* background);
15
16 void draw(CSurface &dest);
17 void update();
18
19 private:
20 list<CSprite*> bgSprites;
21 list<CMenuButton*> buttons;
22 CSurface* background;
23 CSprite* cursor;
24 };
25
26 #endif