21 #include <yaml-cpp/yaml.h> 22 #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;
49 void load(
const YAML::Node& node,
Mod *mod);
std::string getLauncherItem() const
Gets the craft weapon's launcher item.
Definition: RuleCraftWeapon.cpp:186
CraftWeaponProjectileType getProjectileType() const
Gets the craft weapon's projectile's type.
Definition: RuleCraftWeapon.cpp:205
int getDamage() const
Gets the craft weapon's damage.
Definition: RuleCraftWeapon.cpp:107
Contains all the game-specific static data that never changes throughout the game, like rulesets and resources.
Definition: Mod.h:87
RuleCraftWeapon(const std::string &type)
Creates a blank craft weapon ruleset.
Definition: RuleCraftWeapon.cpp:29
std::string getType() const
Gets the craft weapon's type.
Definition: RuleCraftWeapon.cpp:77
int getProjectileSpeed() const
Gets the craft weapon's projectile speed.
Definition: RuleCraftWeapon.cpp:214
std::string getClipItem() const
Gets the craft weapon's clip item.
Definition: RuleCraftWeapon.cpp:196
int getAccuracy() const
Gets the craft weapon's accuracy.
Definition: RuleCraftWeapon.cpp:126
int getSprite() const
Gets the craft weapon's sprite.
Definition: RuleCraftWeapon.cpp:87
int getAggressiveReload() const
Gets the craft weapon's aggressive reload time.
Definition: RuleCraftWeapon.cpp:156
int getSound() const
Gets the craft weapon's sound.
Definition: RuleCraftWeapon.cpp:97
~RuleCraftWeapon()
Cleans up the craft weapon ruleset.
Definition: RuleCraftWeapon.cpp:36
void load(const YAML::Node &node, Mod *mod)
Loads craft weapon data from YAML.
Definition: RuleCraftWeapon.cpp:45
int getRearmRate() const
Gets the craft weapon's rearm rate.
Definition: RuleCraftWeapon.cpp:176
bool isWaterOnly() const
Is this item restricted to use underwater?
Definition: RuleCraftWeapon.cpp:223
int getAmmoMax() const
Gets the craft weapon's maximum ammo.
Definition: RuleCraftWeapon.cpp:166
int getStandardReload() const
Gets the craft weapon's standard reload time.
Definition: RuleCraftWeapon.cpp:146
int getCautiousReload() const
Gets the craft weapon's cautious reload time.
Definition: RuleCraftWeapon.cpp:136
Represents a specific type of craft weapon.
Definition: RuleCraftWeapon.h:35
Definition: BaseInfoState.cpp:40
int getRange() const
Gets the craft weapon's range.
Definition: RuleCraftWeapon.cpp:116