| 20 | #include <algorithm> |
| 21 | |
| 22 | Command::Result Command::executeClient(const ArgumentList_t& argumentList, ModeType mode, |
| 23 | ConsoleInterface& consoleInterface, AbstractModeManager& modeManager) |
| 24 | { |
| 25 | if(isAllowedInMode(mode)) |
| 26 | { |
| 27 | return mCommandClient(argumentList, consoleInterface, modeManager); |
| 28 | } |
| 29 | return Result::WRONG_MODE; |
| 30 | } |
| 31 | |
| 32 | Command::Result Command::executeServer(const ArgumentList_t& args, ConsoleInterface& c, GameMap& gameMap) |
| 33 | { |
no outgoing calls
no test coverage detected