19 #ifndef OPENXCOM_RULEUFO_H
20 #define OPENXCOM_RULEUFO_H
23 #include <yaml-cpp/yaml.h>
40 std::string _type, _size;
42 int _damageMax, _speedMax, _accel, _power, _range, _score, _reload, _breakOffTime;
44 std::string _modSprite;
47 RuleUfo(
const std::string &type);
51 void load(
const YAML::Node& node,
Ruleset *ruleset);
std::string getModSprite() const
Gets the name of the surface that represents this UFO.
Definition: RuleUfo.cpp:219
int getMaxSpeed() const
Gets the UFO's maximum speed.
Definition: RuleUfo.cpp:143
int getAcceleration() const
Gets the UFO's acceleration.
Definition: RuleUfo.cpp:153
~RuleUfo()
Cleans up the UFO ruleset.
Definition: RuleUfo.cpp:37
RuleTerrain * getBattlescapeTerrainData()
Sets the battlescape terrain data ruleset for this UFO.
Definition: RuleUfo.cpp:192
int getWeaponPower() const
Gets the UFO's weapon power.
Definition: RuleUfo.cpp:163
Set of rules and stats for a game.
Definition: Ruleset.h:69
std::string getType() const
Gets the UFO's type.
Definition: RuleUfo.cpp:74
RuleUfo(const std::string &type)
Creates a blank UFO ruleset.
Definition: RuleUfo.cpp:30
int getScore() const
Gets the UFO's score.
Definition: RuleUfo.cpp:183
int getMaxDamage() const
Gets the UFO's maximum damage.
Definition: RuleUfo.cpp:133
int getBreakOffTime() const
Gets the UFO's escape time.
Definition: RuleUfo.cpp:210
int getWeaponReload() const
Gets the reload time of the UFO's weapon.
Definition: RuleUfo.cpp:201
Represents a specific type of UFO.
Definition: RuleUfo.h:37
Represents a specific type of Battlescape Terrain.
Definition: RuleTerrain.h:41
int getSprite() const
Gets the UFO's sprite.
Definition: RuleUfo.cpp:123
std::string getSize() const
Gets the UFO's size.
Definition: RuleUfo.cpp:83
void load(const YAML::Node &node, Ruleset *ruleset)
Loads UFO data from YAML.
Definition: RuleUfo.cpp:47
int getRadius() const
Gets the UFO's radius.
Definition: RuleUfo.cpp:93
int getWeaponRange() const
Gets the UFO's weapon range.
Definition: RuleUfo.cpp:173