MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / cSrvSetCreatureDest

Function cSrvSetCreatureDest

source/modes/ConsoleCommands.cpp:403–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403Command::Result cSrvSetCreatureDest(const Command::ArgumentList_t& args, ConsoleInterface& c, GameMap& gameMap)
404{
405 if(args.size() < 3)
406 return Command::Result::INVALID_ARGUMENT;
407
408 const std::string& name = args[0];
409 int x = Helper::toInt(args[1]);
410 int y = Helper::toInt(args[2]);
411 gameMap.consoleSetCreatureDestination(name, x, y);
412 return Command::Result::SUCCESS;
413}
414
415Command::Result cSrvLogFloodFill(const Command::ArgumentList_t&, ConsoleInterface& c, GameMap& gameMap)
416{

Callers

nothing calls this directly

Calls 2

toIntFunction · 0.85

Tested by

no test coverage detected