* Returns the rules for the specified terrain. * @param name Terrain name. * @return Rules for the terrain. */
| 793 | * @return Rules for the terrain. |
| 794 | */ |
| 795 | RuleTerrain *Ruleset::getTerrain(const std::string &name) const |
| 796 | { |
| 797 | std::map<std::string, RuleTerrain*>::const_iterator i = _terrains.find(name); |
| 798 | if (_terrains.end() != i) return i->second; else return 0; |
| 799 | } |
| 800 | |
| 801 | /** |
| 802 | * Returns the info about a specific map data file. |