21 #include <yaml-cpp/yaml.h> 38 std::string _type, _size;
39 int _sprite, _marker, _markerLand, _markerCrash;
40 int _damageMax, _speedMax, _power, _range, _score, _reload, _breakOffTime, _sightRange, _missionScore;
42 std::string _modSprite;
45 RuleUfo(
const std::string &type);
49 void load(
const YAML::Node& node,
Mod *mod);
std::string getType() const
Gets the UFO's type.
Definition: RuleUfo.cpp:91
int getWeaponRange() const
Gets the UFO's weapon range.
Definition: RuleUfo.cpp:207
int getMarker() const
Gets the UFO's globe marker when flying.
Definition: RuleUfo.cpp:149
std::string getModSprite() const
Gets the name of the surface that represents this UFO.
Definition: RuleUfo.cpp:253
Contains all the game-specific static data that never changes throughout the game, like rulesets and resources.
Definition: Mod.h:87
int getMaxDamage() const
Gets the UFO's maximum damage.
Definition: RuleUfo.cpp:177
int getWeaponReload() const
Gets the reload time of the UFO's weapon.
Definition: RuleUfo.cpp:235
std::string getSize() const
Gets the UFO's size.
Definition: RuleUfo.cpp:100
~RuleUfo()
Cleans up the UFO ruleset.
Definition: RuleUfo.cpp:39
int getSprite() const
Gets the UFO's sprite.
Definition: RuleUfo.cpp:140
int getLandMarker() const
Gets the UFO's globe marker when landed.
Definition: RuleUfo.cpp:158
int getBreakOffTime() const
Gets the UFO's escape time.
Definition: RuleUfo.cpp:244
RuleUfo(const std::string &type)
Creates a blank UFO ruleset.
Definition: RuleUfo.cpp:31
int getScore() const
Gets the UFO's score.
Definition: RuleUfo.cpp:217
int getMaxSpeed() const
Gets the UFO's maximum speed.
Definition: RuleUfo.cpp:187
int getSightRange() const
Gets the UFO's radar range.
Definition: RuleUfo.cpp:263
void load(const YAML::Node &node, Mod *mod)
Loads UFO data from YAML.
Definition: RuleUfo.cpp:49
int getCrashMarker() const
Gets the UFO's globe marker when crashed.
Definition: RuleUfo.cpp:167
Represents a specific type of UFO.
Definition: RuleUfo.h:35
Represents a specific type of Battlescape Terrain.
Definition: RuleTerrain.h:39
int getMissionScore() const
Gets the UFO's mission score.
Definition: RuleUfo.cpp:273
RuleTerrain * getBattlescapeTerrainData() const
Sets the battlescape terrain data ruleset for this UFO.
Definition: RuleUfo.cpp:226
int getRadius() const
Gets the UFO's radius.
Definition: RuleUfo.cpp:110
Definition: BaseInfoState.cpp:40
int getWeaponPower() const
Gets the UFO's weapon power.
Definition: RuleUfo.cpp:197