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

Method getUnit

src/Ruleset/Ruleset.cpp:837–841  ·  view source on GitHub ↗

* Returns the info about a specific unit. * @param name Unit name. * @return Rules for the units. */

Source from the content-addressed store, hash-verified

835 * @return Rules for the units.
836 */
837Unit *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.

Callers 15

addXCOMVehicleMethod · 0.45
deployAliensMethod · 0.45
deployCiviliansMethod · 0.45
thinkMethod · 0.45
evaluateAIModeMethod · 0.45
explosiveEfficacyMethod · 0.45
wayPointActionMethod · 0.45
drawTerrainMethod · 0.45
btnOkClickMethod · 0.45
invClickMethod · 0.45
initMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected