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

Method nextUniqueNameMapLight

source/gamemap/GameMap.cpp:2660–2669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2658}
2659
2660std::string GameMap::nextUniqueNameMapLight()
2661{
2662 std::string ret;
2663 do
2664 {
2665 ++mUniqueNumberMapLight;
2666 ret = MapLight::MAPLIGHT_NAME_PREFIX + Helper::toString(mUniqueNumberMapLight);
2667 } while(getMapLight(ret) != nullptr);
2668 return ret;
2669}
2670
2671GameEntity* GameMap::getEntityFromTypeAndName(GameEntityType entityType,
2672 const std::string& entityName)

Callers 2

readGameMapFromFileFunction · 0.80

Calls 1

toStringFunction · 0.50

Tested by

no test coverage detected