blob: d7094f07490cb536f32d228c165c3c93639d7221 (
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
|
#ifndef COMMAND_SET_H
#define COMMAND_SET_H
#include <bu/list.h>
#include <bu/string.h>
class CommandSet
{
public:
CommandSet();
virtual ~CommandSet();
void addCommand( class Command *pCmd );
bool dispatch( class GameState &gState, const Bu::StringList &lCmd );
void exec( class GameState &gState, int idx );
typedef Bu::List<class Command *> CommandList;
const CommandList &getCommandList() const { return lCommand; }
private:
CommandList lCommand;
};
#endif
|