MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getTerrain

Method getTerrain

src/Ruleset/Ruleset.cpp:795–799  ·  view source on GitHub ↗

* Returns the rules for the specified terrain. * @param name Terrain name. * @return Rules for the terrain. */

Source from the content-addressed store, hash-verified

793 * @return Rules for the terrain.
794 */
795RuleTerrain *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.

Callers 1

NewBattleStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected