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

Method nextUniqueNameCreature

source/gamemap/GameMap.cpp:2616–2625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2614}
2615
2616std::string GameMap::nextUniqueNameCreature(const std::string& className)
2617{
2618 std::string ret;
2619 do
2620 {
2621 ++mUniqueNumberCreature;
2622 ret = className + Helper::toString(mUniqueNumberCreature);
2623 } while(getCreature(ret) != nullptr);
2624 return ret;
2625}
2626
2627std::string GameMap::nextUniqueNameRoom(RoomType type)
2628{

Callers 2

CreatureMethod · 0.80
setupDefinitionMethod · 0.80

Calls 1

toStringFunction · 0.50

Tested by

no test coverage detected