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

Method getArmor

src/Ruleset/Ruleset.cpp:890–894  ·  view source on GitHub ↗

* Returns the info about a specific armor. * @param name Armor name. * @return Rules for the armor. */

Source from the content-addressed store, hash-verified

888 * @return Rules for the armor.
889 */
890Armor *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

Callers 1

operator()Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected