blob: fb8771c841bca8b066fbe2085df1b1f8714e6239 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#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) const;
void registerSuccess(const char* message) const;
void navigate() const;
};
#endif
|