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

Method Unit

src/Ruleset/Unit.cpp:28–32  ·  view source on GitHub ↗

* Creates a certain type of unit. * @param type String defining the type. */

Source from the content-addressed store, hash-verified

26 * @param type String defining the type.
27 */
28Unit::Unit(const std::string &type) : _type(type), _race(""), _rank(""), _armor(""), _standHeight(0), _kneelHeight(0), _floatHeight(0),
29 _value(0), _deathSound(0), _aggroSound(-1), _moveSound(-1), _intelligence(0), _aggression(0), _energyRecovery(30), _specab(SPECAB_NONE),
30 _spawnUnit(""), _livingWeapon(false)
31{
32}
33
34/**
35 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected