![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Represents a specific type of UFO. More...
#include <RuleUfo.h>
Public Member Functions | |
| RuleUfo (const std::string &type) | |
| Creates a blank UFO ruleset. More... | |
| ~RuleUfo () | |
| Cleans up the UFO ruleset. | |
| void | load (const YAML::Node &node, Mod *mod) |
| Loads UFO data from YAML. More... | |
| std::string | getType () const |
| Gets the UFO's type. More... | |
| std::string | getSize () const |
| Gets the UFO's size. More... | |
| int | getRadius () const |
| Gets the UFO's radius. More... | |
| int | getSprite () const |
| Gets the UFO's sprite. More... | |
| int | getMarker () const |
| Gets the UFO's globe marker when flying. More... | |
| int | getLandMarker () const |
| Gets the UFO's globe marker when landed. More... | |
| int | getCrashMarker () const |
| Gets the UFO's globe marker when crashed. More... | |
| int | getMaxDamage () const |
| Gets the UFO's maximum damage. More... | |
| int | getMaxSpeed () const |
| Gets the UFO's maximum speed. More... | |
| int | getWeaponPower () const |
| Gets the UFO's weapon power. More... | |
| int | getWeaponRange () const |
| Gets the UFO's weapon range. More... | |
| int | getScore () const |
| Gets the UFO's score. More... | |
| RuleTerrain * | getBattlescapeTerrainData () const |
| Sets the battlescape terrain data ruleset for this UFO. More... | |
| int | getWeaponReload () const |
| Gets the reload time of the UFO's weapon. More... | |
| int | getBreakOffTime () const |
| Gets the UFO's escape time. More... | |
| std::string | getModSprite () const |
| Gets the name of the surface that represents this UFO. More... | |
| int | getSightRange () const |
| Gets the UFO's radar range. More... | |
| int | getMissionScore () const |
| Gets the UFO's mission score. More... | |
Represents a specific type of UFO.
Contains constant info about a UFO like speed, weapons, scores, etc.
| OpenXcom::RuleUfo::RuleUfo | ( | const std::string & | type | ) |
Creates a blank UFO ruleset.
Creates a blank ruleset for a certain type of UFO.
| type | String defining the type. |
| RuleTerrain * OpenXcom::RuleUfo::getBattlescapeTerrainData | ( | ) | const |
Sets the battlescape terrain data ruleset for this UFO.
Gets the terrain data needed to draw the UFO in the battlescape.
| int OpenXcom::RuleUfo::getBreakOffTime | ( | ) | const |
Gets the UFO's escape time.
Gets the UFO's break off time.
| int OpenXcom::RuleUfo::getCrashMarker | ( | ) | const |
Gets the UFO's globe marker when crashed.
Returns the globe marker for the UFO when crashed.
| int OpenXcom::RuleUfo::getLandMarker | ( | ) | const |
Gets the UFO's globe marker when landed.
Returns the globe marker for the UFO while landed.
| int OpenXcom::RuleUfo::getMarker | ( | ) | const |
Gets the UFO's globe marker when flying.
Returns the globe marker for the UFO while in flight.
| int OpenXcom::RuleUfo::getMaxDamage | ( | ) | const |
Gets the UFO's maximum damage.
Gets the maximum damage (damage the UFO can take) of the UFO.
| int OpenXcom::RuleUfo::getMaxSpeed | ( | ) | const |
Gets the UFO's maximum speed.
Gets the maximum speed of the UFO flying around the Geoscape.
| int OpenXcom::RuleUfo::getMissionScore | ( | ) | const |
Gets the UFO's mission score.
Gets the amount of points awarded every 30 minutes while the UFO is on a mission (doubled when landed).
| std::string OpenXcom::RuleUfo::getModSprite | ( | ) | const |
Gets the name of the surface that represents this UFO.
For user-defined UFOs, use a surface for the "preview" image.
| int OpenXcom::RuleUfo::getRadius | ( | ) | const |
Gets the UFO's radius.
Gets the radius of this type of UFO on the dogfighting window.
| int OpenXcom::RuleUfo::getScore | ( | ) | const |
Gets the UFO's score.
Gets the amount of points the player gets for shooting down the UFO.
| int OpenXcom::RuleUfo::getSightRange | ( | ) | const |
Gets the UFO's radar range.
Gets the UFO's radar range for detecting bases.
| std::string OpenXcom::RuleUfo::getSize | ( | ) | const |
| int OpenXcom::RuleUfo::getSprite | ( | ) | const |
Gets the UFO's sprite.
Gets the ID of the sprite used to draw the UFO in the Dogfight window.
| std::string OpenXcom::RuleUfo::getType | ( | ) | const |
Gets the UFO's type.
Gets the language string that names this UFO.
Each UFO type has a unique name.
| int OpenXcom::RuleUfo::getWeaponPower | ( | ) | const |
Gets the UFO's weapon power.
Gets the maximum damage done by the UFO's weapons per shot.
| int OpenXcom::RuleUfo::getWeaponRange | ( | ) | const |
Gets the UFO's weapon range.
Gets the maximum range for the UFO's weapons.
| int OpenXcom::RuleUfo::getWeaponReload | ( | ) | const |
Gets the reload time of the UFO's weapon.
Gets the weapon reload for UFO ships.
| void OpenXcom::RuleUfo::load | ( | const YAML::Node & | node, |
| Mod * | mod | ||
| ) |
Loads UFO data from YAML.
Loads the UFO from a YAML file.
| node | YAML node. |
| mod | Mod for the UFO. |
1.8.14