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

Method getClassDescription

source/gamemap/GameMap.cpp:514–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514const CreatureDefinition* GameMap::getClassDescription(const string &className)
515{
516 for (std::pair<const CreatureDefinition*,CreatureDefinition*>& def : mClassDescriptions)
517 {
518 if (def.second != nullptr)
519 {
520 if(def.second->getClassName().compare(className) == 0)
521 return def.second;
522 }
523 else if(def.first->getClassName().compare(className) == 0)
524 return def.first;
525 }
526
527 return nullptr;
528}
529
530CreatureDefinition* GameMap::getClassDescriptionForTuning(const std::string& name)
531{

Callers 10

initSeatMethod · 0.80
doUpkeepMethod · 0.80
spawnWaveMethod · 0.80
doUpkeepMethod · 0.80
initGameRendererMethod · 0.80
setupDefinitionMethod · 0.80
updateCursorTextMethod · 0.80
notifyGuiActionMethod · 0.80
cListFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected