| 2720 | } |
| 2721 | |
| 2722 | void GameMap::consoleSetCreatureDestination(const std::string& creatureName, int x, int y) |
| 2723 | { |
| 2724 | Creature* creature = getCreature(creatureName); |
| 2725 | if(creature == nullptr) |
| 2726 | return; |
| 2727 | Tile* tile = getTile(x, y); |
| 2728 | if(tile == nullptr) |
| 2729 | return; |
| 2730 | if(creature->getPositionTile() == nullptr) |
| 2731 | return; |
| 2732 | creature->clearActionQueue(); |
| 2733 | creature->setDestination(tile); |
| 2734 | } |
| 2735 | |
| 2736 | void GameMap::consoleToggleCreatureVisualDebug(const std::string& creatureName) |
| 2737 | { |
no test coverage detected