19 #ifndef OPENXCOM_RULECRAFTWEAPON_H
20 #define OPENXCOM_RULECRAFTWEAPON_H
23 #include <yaml-cpp/yaml.h>
24 #include "../Savegame/CraftWeaponProjectile.h"
39 int _sprite, _sound, _damage, _range, _accuracy, _reloadCautious, _reloadStandard, _reloadAggressive, _ammoMax, _rearmRate, _projectileSpeed;
40 CraftWeaponProjectileType _projectileType;
41 std::string _launcher, _clip;
48 void load(
const YAML::Node& node,
int modIndex);
int getRange() const
Gets the craft weapon's range.
Definition: RuleCraftWeapon.cpp:119
int getDamage() const
Gets the craft weapon's damage.
Definition: RuleCraftWeapon.cpp:110
int getProjectileSpeed() const
Gets the craft weapon's projectile speed.
Definition: RuleCraftWeapon.cpp:217
CraftWeaponProjectileType getProjectileType() const
Gets the craft weapon's projectile's type.
Definition: RuleCraftWeapon.cpp:208
RuleCraftWeapon(const std::string &type)
Creates a blank craft weapon ruleset.
Definition: RuleCraftWeapon.cpp:28
int getCautiousReload() const
Gets the craft weapon's cautious reload time.
Definition: RuleCraftWeapon.cpp:139
std::string getType() const
Gets the craft weapon's type.
Definition: RuleCraftWeapon.cpp:80
std::string getClipItem() const
Gets the craft weapon's clip item.
Definition: RuleCraftWeapon.cpp:199
~RuleCraftWeapon()
Cleans up the craft weapon ruleset.
Definition: RuleCraftWeapon.cpp:35
void load(const YAML::Node &node, int modIndex)
Loads craft weapon data from YAML.
Definition: RuleCraftWeapon.cpp:44
int getAggressiveReload() const
Gets the craft weapon's aggressive reload time.
Definition: RuleCraftWeapon.cpp:159
int getSprite() const
Gets the craft weapon's sprite.
Definition: RuleCraftWeapon.cpp:90
std::string getLauncherItem() const
Gets the craft weapon's launcher item.
Definition: RuleCraftWeapon.cpp:189
int getAccuracy() const
Gets the craft weapon's accuracy.
Definition: RuleCraftWeapon.cpp:129
int getRearmRate() const
Gets the craft weapon's rearm rate.
Definition: RuleCraftWeapon.cpp:179
int getSound() const
Gets the craft weapon's sound.
Definition: RuleCraftWeapon.cpp:100
Represents a specific type of craft weapon.
Definition: RuleCraftWeapon.h:35
int getStandardReload() const
Gets the craft weapon's standard reload time.
Definition: RuleCraftWeapon.cpp:149
int getAmmoMax() const
Gets the craft weapon's maximum ammo.
Definition: RuleCraftWeapon.cpp:169