The Game Engine
1
Main Page
Related Pages
Classes
Files
File List
File Members
Menu.h
Go to the documentation of this file.
1
#ifndef __MENU_H__
2
#define __MENU_H__
3
#include <SDL/SDL.h>
4
#include <string>
5
#include "
fns.h
"
6
#include "
WorldObject.h
"
7
#include <map>
8
17
class
Menu
:
public
WorldObject
18
{
19
public
:
30
Menu
(std::string name, std::string themeName = NULL,
bool
fullscreen =
true
);
31
35
void
draw
();
36
40
void
drawCollisions
();
41
45
void
update
();
46
52
void
addMenu
(std::string name,
int
index
);
53
57
Point2D
getBasePos
() {
return
Point2D
(); };
58
62
Point2D
getCenterPos
() {
return
Point2D
(); };
63
67
virtual
WorldObjectType
getType
(){
return
MENU
; }
68
69
protected
:
71
map<std::string,int>
mMenus
;
72
73
74
};
75
#endif
Menu.h
Generated on Tue Apr 16 2013 02:32:41 for The Game Engine by
1.8.3.1