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

Method Armor

src/Ruleset/Armor.cpp:29–33  ·  view source on GitHub ↗

* Creates a blank ruleset for a certain * type of armor. * @param type String defining the type. */

Source from the content-addressed store, hash-verified

27 * @param type String defining the type.
28 */
29Armor::Armor(const std::string &type) : _type(type), _spriteSheet(""), _spriteInv(""), _corpseGeo(""), _storeItem(""), _corpseBattle(), _frontArmor(0), _sideArmor(0), _rearArmor(0), _underArmor(0), _drawingRoutine(0), _movementType(MT_WALK), _size(1), _weight(0)
30{
31 for (int i=0; i < DAMAGE_TYPES; i++)
32 _damageModifier[i] = 1.0f;
33}
34
35/**
36 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected