![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Represents a specific type of craft weapon. More...
#include <RuleCraftWeapon.h>
Public Member Functions | |
| RuleCraftWeapon (const std::string &type) | |
| Creates a blank craft weapon ruleset. More... | |
| ~RuleCraftWeapon () | |
| Cleans up the craft weapon ruleset. | |
| void | load (const YAML::Node &node, Mod *mod) |
| Loads craft weapon data from YAML. More... | |
| std::string | getType () const |
| Gets the craft weapon's type. More... | |
| int | getSprite () const |
| Gets the craft weapon's sprite. More... | |
| int | getSound () const |
| Gets the craft weapon's sound. More... | |
| int | getDamage () const |
| Gets the craft weapon's damage. More... | |
| int | getRange () const |
| Gets the craft weapon's range. More... | |
| int | getAccuracy () const |
| Gets the craft weapon's accuracy. More... | |
| int | getCautiousReload () const |
| Gets the craft weapon's cautious reload time. More... | |
| int | getStandardReload () const |
| Gets the craft weapon's standard reload time. More... | |
| int | getAggressiveReload () const |
| Gets the craft weapon's aggressive reload time. More... | |
| int | getAmmoMax () const |
| Gets the craft weapon's maximum ammo. More... | |
| int | getRearmRate () const |
| Gets the craft weapon's rearm rate. More... | |
| std::string | getLauncherItem () const |
| Gets the craft weapon's launcher item. More... | |
| std::string | getClipItem () const |
| Gets the craft weapon's clip item. More... | |
| CraftWeaponProjectileType | getProjectileType () const |
| Gets the craft weapon's projectile's type. More... | |
| int | getProjectileSpeed () const |
| Gets the craft weapon's projectile speed. More... | |
| bool | isWaterOnly () const |
| Is this item restricted to use underwater? More... | |
Represents a specific type of craft weapon.
Contains constant info about a craft weapon like damage, range, accuracy, items used, etc.
| OpenXcom::RuleCraftWeapon::RuleCraftWeapon | ( | const std::string & | type | ) |
Creates a blank craft weapon ruleset.
Creates a blank ruleset for a certain type of craft weapon.
| type | String defining the type. |
| int OpenXcom::RuleCraftWeapon::getAccuracy | ( | ) | const |
Gets the craft weapon's accuracy.
Gets the percentage chance of each shot of this craft weapon hitting an enemy craft.
| int OpenXcom::RuleCraftWeapon::getAggressiveReload | ( | ) | const |
Gets the craft weapon's aggressive reload time.
Gets the amount of time the craft weapon takes to reload in aggressive mode.
| int OpenXcom::RuleCraftWeapon::getAmmoMax | ( | ) | const |
Gets the craft weapon's maximum ammo.
Gets the maximum amount of ammo the craft weapon can carry.
| int OpenXcom::RuleCraftWeapon::getCautiousReload | ( | ) | const |
Gets the craft weapon's cautious reload time.
Gets the amount of time the craft weapon takes to reload in cautious mode.
| std::string OpenXcom::RuleCraftWeapon::getClipItem | ( | ) | const |
Gets the craft weapon's clip item.
Gets the language string of the item used to load this craft weapon with ammo.
| int OpenXcom::RuleCraftWeapon::getDamage | ( | ) | const |
Gets the craft weapon's damage.
Gets the amount of damage this craft weapon inflicts on enemy crafts.
| std::string OpenXcom::RuleCraftWeapon::getLauncherItem | ( | ) | const |
Gets the craft weapon's launcher item.
Gets the language string of the item used to equip this craft weapon.
| int OpenXcom::RuleCraftWeapon::getProjectileSpeed | ( | ) | const |
Gets the craft weapon's projectile speed.
Gets the speed of the projectile fired by this weapon.
| CraftWeaponProjectileType OpenXcom::RuleCraftWeapon::getProjectileType | ( | ) | const |
Gets the craft weapon's projectile's type.
Gets the Projectile Type this weapon will fire.
| int OpenXcom::RuleCraftWeapon::getRange | ( | ) | const |
Gets the craft weapon's range.
Gets the maximum range of this craft weapon.
| int OpenXcom::RuleCraftWeapon::getRearmRate | ( | ) | const |
Gets the craft weapon's rearm rate.
Gets how much ammo is added to the craft weapon while rearming (the amount of ammo in each clip item).
| int OpenXcom::RuleCraftWeapon::getSound | ( | ) | const |
Gets the craft weapon's sound.
Gets the ID of the sound used when firing the weapon in the Dogfight screen.
| int OpenXcom::RuleCraftWeapon::getSprite | ( | ) | const |
Gets the craft weapon's sprite.
Gets the ID of the sprite used to draw the craft weapon in the Equip Craft and Interception screens.
| int OpenXcom::RuleCraftWeapon::getStandardReload | ( | ) | const |
Gets the craft weapon's standard reload time.
Gets the amount of time the craft weapon takes to reload in standard mode.
| std::string OpenXcom::RuleCraftWeapon::getType | ( | ) | const |
Gets the craft weapon's type.
Gets the language string that names this craft weapon.
Each craft weapon type has a unique name.
| bool OpenXcom::RuleCraftWeapon::isWaterOnly | ( | ) | const |
Is this item restricted to use underwater?
Can this item be used on land or is it underwater only?
| void OpenXcom::RuleCraftWeapon::load | ( | const YAML::Node & | node, |
| Mod * | mod | ||
| ) |
Loads craft weapon data from YAML.
Loads the craft weapon from a YAML file.
| node | YAML node. |
| mod | Mod for the craft weapon. |
1.8.14