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

Method getRoomConfigDouble

source/utils/ConfigManager.cpp:1411–1421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1409}
1410
1411double ConfigManager::getRoomConfigDouble(const std::string& param) const
1412{
1413 auto it = mRoomsConfig.find(param);
1414 if(it == mRoomsConfig.end())
1415 {
1416 OD_LOG_ERR("Unknown parameter param=" + param);
1417 return 0.0;
1418 }
1419
1420 return Helper::toDouble(it->second);
1421}
1422
1423const std::string& ConfigManager::getTrapConfigString(const std::string& param) const
1424{

Callers 9

handleEatChickenMethod · 0.80
useRoomMethod · 0.80
useRoomMethod · 0.80
useRoomMethod · 0.80
doUpkeepMethod · 0.80
doUpkeepMethod · 0.80
useRoomMethod · 0.80
doUpkeepMethod · 0.80
doUpkeepMethod · 0.80

Calls 1

toDoubleFunction · 0.85

Tested by

no test coverage detected