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

Method nextUniqueNameRoom

source/gamemap/GameMap.cpp:2627–2636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2625}
2626
2627std::string GameMap::nextUniqueNameRoom(RoomType type)
2628{
2629 std::string ret;
2630 do
2631 {
2632 ++mUniqueNumberRoom;
2633 ret = RoomManager::getRoomNameFromRoomType(type) + "_" + Helper::toString(mUniqueNumberRoom);
2634 } while(getRoomByName(ret) != nullptr);
2635 return ret;
2636}
2637
2638std::string GameMap::nextUniqueNameRenderedMovableEntity(const std::string& baseName)
2639{

Callers 2

buildRoomDefaultMethod · 0.80
buildRoomMethod · 0.80

Calls 1

toStringFunction · 0.50

Tested by

no test coverage detected