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

Method getTrapConfigInt32

source/utils/ConfigManager.cpp:1447–1457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1445}
1446
1447int32_t ConfigManager::getTrapConfigInt32(const std::string& param) const
1448{
1449 auto it = mTrapsConfig.find(param);
1450 if(it == mTrapsConfig.end())
1451 {
1452 OD_LOG_ERR("Unknown parameter param=" + param);
1453 return 0;
1454 }
1455
1456 return Helper::toInt(it->second);
1457}
1458
1459double ConfigManager::getTrapConfigDouble(const std::string& param) const
1460{

Callers 5

getCostPerTileMethod · 0.80
getCostPerTileMethod · 0.80
getCostPerTileMethod · 0.80
getCostPerTileMethod · 0.80

Calls 1

toIntFunction · 0.85

Tested by

no test coverage detected