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:188
CraftWeaponProjectileType getProjectileType() const
Gets the craft weapon's projectile's type.
Definition: RuleCraftWeapon.cpp:207
int getDamage() const
Gets the craft weapon's damage.
Definition: RuleCraftWeapon.cpp:109
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:79
int getProjectileSpeed() const
Gets the craft weapon's projectile speed.
Definition: RuleCraftWeapon.cpp:216
std::string getClipItem() const
Gets the craft weapon's clip item.
Definition: RuleCraftWeapon.cpp:198
int getAccuracy() const
Gets the craft weapon's accuracy.
Definition: RuleCraftWeapon.cpp:128
int getSprite() const
Gets the craft weapon's sprite.
Definition: RuleCraftWeapon.cpp:89
int getAggressiveReload() const
Gets the craft weapon's aggressive reload time.
Definition: RuleCraftWeapon.cpp:158
int getSound() const
Gets the craft weapon's sound.
Definition: RuleCraftWeapon.cpp:99
~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:178
bool isWaterOnly() const
Is this item restricted to use underwater?
Definition: RuleCraftWeapon.cpp:225
int getAmmoMax() const
Gets the craft weapon's maximum ammo.
Definition: RuleCraftWeapon.cpp:168
int getStandardReload() const
Gets the craft weapon's standard reload time.
Definition: RuleCraftWeapon.cpp:148
int getCautiousReload() const
Gets the craft weapon's cautious reload time.
Definition: RuleCraftWeapon.cpp:138
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:118