| 512 | } |
| 513 | |
| 514 | const 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 | |
| 530 | CreatureDefinition* GameMap::getClassDescriptionForTuning(const std::string& name) |
| 531 | { |
no outgoing calls
no test coverage detected