summaryrefslogtreecommitdiff
path: root/src/game/Menu.h
blob: 3f955e193f4b75f1fc4c2302e7cdc1ffbad5a897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef MENU_H_
#define MENU_H_

#include "Tool.h"

class Menu
{
	char icon;
	string description;
	vector<Tool*> tools;
public:
	Menu(char icon_, string description_):
		icon(icon_),
		description(description_),
		tools(vector<Tool*>())
	{

	}

	virtual ~Menu()
	{
		for(int i = 0; i < tools.size(); i++)
		{
			delete tools[i];
		}
		tools.clear();
	}

	vector<Tool*> GetToolList()
	{
		return tools;
	}

	char GetIcon()
	{
		return icon;
	}

	string GetDescription()
	{
		return description;
	}

	void AddTool(Tool * tool_)
	{
		tools.push_back(tool_);
	}
};


#endif /* MENU_H_ */