| 326 | } |
| 327 | |
| 328 | void GameMap::clearCreatures() |
| 329 | { |
| 330 | // We need to work on a copy of mCreatures because removeFromGameMap will remove them from this vector |
| 331 | std::vector<Creature*> creatures = mCreatures; |
| 332 | for (Creature* creature : creatures) |
| 333 | { |
| 334 | creature->removeFromGameMap(); |
| 335 | creature->deleteYourself(); |
| 336 | } |
| 337 | |
| 338 | mCreatures.clear(); |
| 339 | } |
| 340 | |
| 341 | void GameMap::clearAiManager() |
| 342 | { |
nothing calls this directly
no test coverage detected