19 #ifndef OPENXCOM_RULESOLDIER_H 20 #define OPENXCOM_RULESOLDIER_H 23 #include "../Ruleset/Unit.h" 37 UnitStats _minStats, _maxStats, _statCaps;
39 int _standHeight, _kneelHeight, _floatHeight;
46 void load(
const YAML::Node& node);
RuleSoldier(const std::string &type)
Creates a blank unit ruleset.
Definition: RuleSoldier.cpp:29
int getFloatHeight() const
Gets the elevation of the soldier when it's flying.
Definition: RuleSoldier.cpp:116
~RuleSoldier()
Cleans up the unit ruleset.
Definition: RuleSoldier.cpp:36
int getStandHeight() const
Gets the height of the soldier when it's standing.
Definition: RuleSoldier.cpp:98
UnitStats getMaxStats() const
Gets the maximum stats for the random stats generator.
Definition: RuleSoldier.cpp:80
This struct holds some plain unit attribute data together.
Definition: Unit.h:32
Represents the creation data for a specific type of unit.
Definition: RuleSoldier.h:33
UnitStats getStatCaps() const
Gets the stat caps.
Definition: RuleSoldier.cpp:89
void load(const YAML::Node &node)
Loads the unit data from YAML.
Definition: RuleSoldier.cpp:45
std::string getType() const
Gets the unit's type.
Definition: RuleSoldier.cpp:62
int getKneelHeight() const
Gets the height of the soldier when it's kneeling.
Definition: RuleSoldier.cpp:107
UnitStats getMinStats() const
Gets the minimum stats for the random stats generator.
Definition: RuleSoldier.cpp:71
std::string getArmor() const
Gets the armor name.
Definition: RuleSoldier.cpp:125
COPYING:
Definition: BaseInfoState.cpp:40