#ifndef COMMAND_SET_H #define COMMAND_SET_H #include #include 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 CommandList; const CommandList &getCommandList() const { return lCommand; } private: CommandList lCommand; }; #endif