![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Represents a specific type of armor. More...
#include <Armor.h>
Public Member Functions | |
| Armor (const std::string &type) | |
| Creates a blank armor ruleset. More... | |
| ~Armor () | |
| Cleans up the armor ruleset. | |
| void | load (const YAML::Node &node) |
| Loads the armor data from YAML. More... | |
| std::string | getType () const |
| Gets the armor's type. More... | |
| std::string | getSpriteSheet () const |
| Gets the unit's sprite sheet. More... | |
| std::string | getSpriteInventory () const |
| Gets the unit's inventory sprite. More... | |
| int | getFrontArmor () const |
| Gets the front armor level. More... | |
| int | getSideArmor () const |
| Gets the side armor level. More... | |
| int | getRearArmor () const |
| Gets the rear armor level. More... | |
| int | getUnderArmor () const |
| Gets the under armor level. More... | |
| std::string | getCorpseGeoscape () const |
| Gets the Geoscape corpse item. More... | |
| const std::vector< std::string > & | getCorpseBattlescape () const |
| Gets the Battlescape corpse item. More... | |
| std::string | getStoreItem () const |
| Gets the stores item. More... | |
| std::string | getSpecialWeapon () const |
| Gets the special weapon type. More... | |
| int | getDrawingRoutine () const |
| Gets the battlescape drawing routine ID. More... | |
| bool | drawBubbles () const |
| Gets whether or not to draw bubbles (breathing animation). More... | |
| MovementType | getMovementType () const |
| DO NOT USE THIS FUNCTION OUTSIDE THE BATTLEUNIT CONSTRUCTOR OR I WILL HUNT YOU DOWN. More... | |
| int | getSize () const |
| Gets whether this is a normal or big unit. More... | |
| float | getDamageModifier (ItemDamageType dt) const |
| Gets damage modifier. More... | |
| const std::vector< int > & | getLoftempsSet () const |
| Gets loftempSet. More... | |
| const UnitStats * | getStats () const |
| Gets the armor's stats. More... | |
| int | getWeight () const |
| Gets the armor's weight. More... | |
| int | getDeathFrames () const |
| Gets number of death frames. More... | |
| bool | getConstantAnimation () const |
| Gets if armor uses constant animation. | |
| bool | getCanHoldWeapon () const |
| Gets if armor can hold weapon. | |
| ForcedTorso | getForcedTorso () const |
| Checks if this armor ignores gender (power suit/flying suit). More... | |
| int | getFaceColorGroup () const |
| Get face base color. More... | |
| int | getHairColorGroup () const |
| Get hair base color. More... | |
| int | getUtileColorGroup () const |
| Get utile base color. More... | |
| int | getRankColorGroup () const |
| Get rank base color. More... | |
| int | getFaceColor (int i) const |
| Get face base color. More... | |
| int | getHairColor (int i) const |
| Get hair base color. More... | |
| int | getUtileColor (int i) const |
| Get utile base color. More... | |
| int | getRankColor (int i) const |
| Get rank base color. More... | |
| bool | hasInventory () const |
| Can we access this unit's inventory? More... | |
| const std::vector< std::string > & | getUnits () const |
| Gets the armor's units. More... | |
Represents a specific type of armor.
Not only soldier armor, but also alien armor - some alien races wear Soldier Armor, Leader Armor or Commander Armor depending on their rank.
| OpenXcom::Armor::Armor | ( | const std::string & | type | ) |
Creates a blank armor ruleset.
Creates a blank ruleset for a certain type of armor.
| type | String defining the type. |
| bool OpenXcom::Armor::drawBubbles | ( | ) | const |
Gets whether or not to draw bubbles (breathing animation).
| const std::vector< std::string > & OpenXcom::Armor::getCorpseBattlescape | ( | ) | const |
Gets the Battlescape corpse item.
Gets the list of corpse items dropped by the unit in the Battlescape (one per unit tile).
| std::string OpenXcom::Armor::getCorpseGeoscape | ( | ) | const |
Gets the Geoscape corpse item.
Gets the corpse item used in the Geoscape.
| float OpenXcom::Armor::getDamageModifier | ( | ItemDamageType | dt | ) | const |
Gets damage modifier.
Gets the damage modifier for a certain damage type.
| dt | The damageType. |
| int OpenXcom::Armor::getDeathFrames | ( | ) | const |
Gets number of death frames.
| int OpenXcom::Armor::getDrawingRoutine | ( | ) | const |
Gets the battlescape drawing routine ID.
Gets the drawing routine ID.
| int OpenXcom::Armor::getFaceColor | ( | int | i | ) | const |
Get face base color.
Gets new face colors for replacement, if 0 then don't replace colors.
| int OpenXcom::Armor::getFaceColorGroup | ( | ) | const |
Get face base color.
Gets hair base color group for replacement, if 0 then don't replace colors.
| ForcedTorso OpenXcom::Armor::getForcedTorso | ( | ) | const |
Checks if this armor ignores gender (power suit/flying suit).
| int OpenXcom::Armor::getFrontArmor | ( | ) | const |
Gets the front armor level.
| int OpenXcom::Armor::getHairColor | ( | int | i | ) | const |
Get hair base color.
Gets new hair colors for replacement, if 0 then don't replace colors.
| int OpenXcom::Armor::getHairColorGroup | ( | ) | const |
Get hair base color.
Gets hair base color group for replacement, if 0 then don't replace colors.
| const std::vector< int > & OpenXcom::Armor::getLoftempsSet | ( | ) | const |
Gets loftempSet.
Gets the loftempSet.
| MovementType OpenXcom::Armor::getMovementType | ( | ) | const |
DO NOT USE THIS FUNCTION OUTSIDE THE BATTLEUNIT CONSTRUCTOR OR I WILL HUNT YOU DOWN.
Gets the movement type of this armor.
Useful for determining whether the armor can fly. : do not use this function outside the BattleUnit constructor, unless you are SURE you know what you are doing. for more information, see the BattleUnit constructor.
| int OpenXcom::Armor::getRankColor | ( | int | i | ) | const |
Get rank base color.
Gets new rank colors for replacement, if 0 then don't replace colors.
| int OpenXcom::Armor::getRankColorGroup | ( | ) | const |
Get rank base color.
Gets rank base color group for replacement, if 0 then don't replace colors.
| int OpenXcom::Armor::getRearArmor | ( | ) | const |
Gets the rear armor level.
| int OpenXcom::Armor::getSideArmor | ( | ) | const |
Gets the side armor level.
| int OpenXcom::Armor::getSize | ( | ) | const |
Gets whether this is a normal or big unit.
Gets the size of the unit.
Normally this is 1 (small) or 2 (big).
| std::string OpenXcom::Armor::getSpecialWeapon | ( | ) | const |
Gets the special weapon type.
Gets the type of special weapon.
| std::string OpenXcom::Armor::getSpriteInventory | ( | ) | const |
Gets the unit's inventory sprite.
| std::string OpenXcom::Armor::getSpriteSheet | ( | ) | const |
Gets the unit's sprite sheet.
| const UnitStats * OpenXcom::Armor::getStats | ( | ) | const |
Gets the armor's stats.
Gets pointer to the armor's stats.
| std::string OpenXcom::Armor::getStoreItem | ( | ) | const |
Gets the stores item.
Gets the storage item needed to equip this.
Every soldier armor needs an item.
| std::string OpenXcom::Armor::getType | ( | ) | const |
Gets the armor's type.
Returns the language string that names this armor.
Each armor has a unique name. Coveralls, Power Suit,...
| int OpenXcom::Armor::getUnderArmor | ( | ) | const |
Gets the under armor level.
| const std::vector< std::string > & OpenXcom::Armor::getUnits | ( | ) | const |
Gets the armor's units.
Gets the list of units this armor applies to.
| int OpenXcom::Armor::getUtileColor | ( | int | i | ) | const |
Get utile base color.
Gets new utile colors for replacement, if 0 then don't replace colors.
| int OpenXcom::Armor::getUtileColorGroup | ( | ) | const |
Get utile base color.
Gets utile base color group for replacement, if 0 then don't replace colors.
| int OpenXcom::Armor::getWeight | ( | ) | const |
Gets the armor's weight.
| bool OpenXcom::Armor::hasInventory | ( | ) | const |
Can we access this unit's inventory?
Can this unit's inventory be accessed for any reason?
| void OpenXcom::Armor::load | ( | const YAML::Node & | node | ) |
Loads the armor data from YAML.
Loads the armor from a YAML file.
| node | YAML node. |
1.8.14