* Returns the info about a specific armor. * @param name Armor name. * @return Rules for the armor. */
| 888 | * @return Rules for the armor. |
| 889 | */ |
| 890 | Armor *Ruleset::getArmor(const std::string &name) const |
| 891 | { |
| 892 | std::map<std::string, Armor*>::const_iterator i = _armors.find(name); |
| 893 | if (_armors.end() != i) return i->second; else return 0; |
| 894 | } |
| 895 | |
| 896 | /** |
| 897 | * Returns the list of all armors |