Website Summary Files Commits Branches @commit @diff @stats
path: root / src / ConsoleInterface / Menu.h
blob: a4ee3c66c7e01fdcaf6cfce3e0766245ac4c7d03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef HEADER_CONSOLEINTERFACE_MENU
#define HEADER_CONSOLEINTERFACE_MENU

#include "Command.h"
#include "../List/List.hpp"

class Menu {
	char title[256];
	List<Command> menuOptions;

public:
	Menu();
	Menu(const char* title);
	Menu(const char* title, const Command* commands, unsigned commandCount);

	void addCommand(const Command& command);
	void registerError(const char* message);
	void navigate() const;
};

#endif