-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCommandFunctor.h
More file actions
40 lines (33 loc) · 832 Bytes
/
Copy pathCommandFunctor.h
File metadata and controls
40 lines (33 loc) · 832 Bytes
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
#ifndef COMMAND_FUNCTOR_H
#define COMMAND_FUNCTOR_H
#include <string>
using std::string;
#include <vector>
using std::vector;
#include <menu.h>
class Language;
class Market;
class MasterState;
class NamedObject;
class Person;
class Platform;
class CommandFunctor {
public:
CommandFunctor(MasterState *masterState, string prefix, string fullDesc);
~CommandFunctor();
string getPrefix();
string getFullDesc();
virtual void executeCommand(const char *command);
protected:
MasterState *_masterState;
Person *personChoiceMenu(const char *title);
Language *languageChoiceMenu();
Platform *platformChoiceMenu();
Market *marketChoiceMenu();
MENU *setupMenu(vector<NamedObject *> *namedObjects);
WINDOW *setupWindow(MENU *my_menu, const char *title);
private:
string _prefix;
string _fullDesc;
};
#endif