* Returns the info about a specific unit. * @param name Unit name. * @return Rules for the units. */
| 835 | * @return Rules for the units. |
| 836 | */ |
| 837 | Unit *Ruleset::getUnit(const std::string &name) const |
| 838 | { |
| 839 | std::map<std::string, Unit*>::const_iterator i = _units.find(name); |
| 840 | if (_units.end() != i) return i->second; else return 0; |
| 841 | } |
| 842 | |
| 843 | /** |
| 844 | * Returns the info about a specific alien race. |
no outgoing calls
no test coverage detected