![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Represents the creation data for a specific type of unit. More...
#include <RuleSoldier.h>
Public Member Functions | |
| RuleSoldier (const std::string &type) | |
| Creates a blank unit ruleset. More... | |
| ~RuleSoldier () | |
| Cleans up the unit ruleset. | |
| void | load (const YAML::Node &node) |
| Loads the unit data from YAML. More... | |
| std::string | getType () const |
| Gets the unit's type. More... | |
| UnitStats | getMinStats () const |
| Gets the minimum stats for the random stats generator. More... | |
| UnitStats | getMaxStats () const |
| Gets the maximum stats for the random stats generator. More... | |
| UnitStats | getStatCaps () const |
| Gets the stat caps. More... | |
| int | getStandHeight () const |
| Gets the height of the soldier when it's standing. More... | |
| int | getKneelHeight () const |
| Gets the height of the soldier when it's kneeling. More... | |
| int | getFloatHeight () const |
| Gets the elevation of the soldier when it's flying. More... | |
| std::string | getArmor () const |
| Gets the armor name. More... | |
Represents the creation data for a specific type of unit.
This info is copied to either Soldier for XCom soldiers or BattleUnit for aliens and civilians.
| OpenXcom::RuleSoldier::RuleSoldier | ( | const std::string & | type | ) |
Creates a blank unit ruleset.
Creates a blank ruleunit for a certain type of soldier.
| type | String defining the type. |
| std::string OpenXcom::RuleSoldier::getArmor | ( | ) | const |
Gets the armor name.
| int OpenXcom::RuleSoldier::getFloatHeight | ( | ) | const |
Gets the elevation of the soldier when it's flying.
| int OpenXcom::RuleSoldier::getKneelHeight | ( | ) | const |
Gets the height of the soldier when it's kneeling.
| UnitStats OpenXcom::RuleSoldier::getMaxStats | ( | ) | const |
Gets the maximum stats for the random stats generator.
| UnitStats OpenXcom::RuleSoldier::getMinStats | ( | ) | const |
Gets the minimum stats for the random stats generator.
| int OpenXcom::RuleSoldier::getStandHeight | ( | ) | const |
Gets the height of the soldier when it's standing.
| UnitStats OpenXcom::RuleSoldier::getStatCaps | ( | ) | const |
Gets the stat caps.
| std::string OpenXcom::RuleSoldier::getType | ( | ) | const |
Gets the unit's type.
Returns the language string that names this unit.
Each unit type has a unique name.
| void OpenXcom::RuleSoldier::load | ( | const YAML::Node & | node | ) |
Loads the unit data from YAML.
Loads the unit from a YAML file.
| node | YAML node. |
1.8.6