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

Method getTrapConfigDouble

source/utils/ConfigManager.cpp:1459–1469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1457}
1458
1459double ConfigManager::getTrapConfigDouble(const std::string& param) const
1460{
1461 auto it = mTrapsConfig.find(param);
1462 if(it == mTrapsConfig.end())
1463 {
1464 OD_LOG_ERR("Unknown parameter param=" + param);
1465 return 0.0;
1466 }
1467
1468 return Helper::toDouble(it->second);
1469}
1470
1471const std::string& ConfigManager::getSpellConfigString(const std::string& param) const
1472{

Callers 5

TrapCannonMethod · 0.80
shootMethod · 0.80
TrapSpikeMethod · 0.80
TrapBoulderMethod · 0.80
shootMethod · 0.80

Calls 1

toDoubleFunction · 0.85

Tested by

no test coverage detected