22 #include <yaml-cpp/yaml.h> 39 std::vector<std::string> _requires;
40 int _spriteShape, _spriteFacility;
41 bool _lift, _hyper, _mind, _grav;
42 int _size, _buildCost, _buildTime, _monthlyCost;
43 int _storage, _personnel, _aliens, _crafts, _labs, _workshops, _psiLabs;
44 int _radarRange, _radarChance, _defense, _hitRatio, _fireSound, _hitSound;
53 void load(
const YAML::Node& node,
Mod *mod,
int listOrder);
std::string getMapName() const
Gets the facility's battlescape map name.
Definition: RuleBaseFacility.cpp:329
int getSize() const
Gets the facility's size.
Definition: RuleBaseFacility.cpp:139
bool isHyperwave() const
Gets if the facility has hyperwave detection.
Definition: RuleBaseFacility.cpp:160
int getFireSound() const
Gets the facility's fire sound.
Definition: RuleBaseFacility.cpp:347
int getHitSound() const
Gets the facility's hit sound.
Definition: RuleBaseFacility.cpp:338
int getCrafts() const
Gets the facility's craft capacity.
Definition: RuleBaseFacility.cpp:249
RuleBaseFacility(const std::string &type)
Creates a blank facility ruleset.
Definition: RuleBaseFacility.cpp:30
Contains all the game-specific static data that never changes throughout the game, like rulesets and resources.
Definition: Mod.h:87
int getDefenseValue() const
Gets the facility's defense value.
Definition: RuleBaseFacility.cpp:309
const std::vector< std::string > & getRequirements() const
Gets the facility's requirements.
Definition: RuleBaseFacility.cpp:110
bool isGravShield() const
Gets if the facility is a grav shield.
Definition: RuleBaseFacility.cpp:180
void load(const YAML::Node &node, Mod *mod, int listOrder)
Loads the facility from YAML.
Definition: RuleBaseFacility.cpp:47
int getSpriteShape() const
Gets the facility's shape sprite.
Definition: RuleBaseFacility.cpp:120
int getAliens() const
Gets the facility's alien capacity.
Definition: RuleBaseFacility.cpp:240
std::string getType() const
Gets the facility's type.
Definition: RuleBaseFacility.cpp:100
bool isLift() const
Gets if the facility is an access lift.
Definition: RuleBaseFacility.cpp:150
int getWorkshops() const
Gets the facility's workshop space.
Definition: RuleBaseFacility.cpp:269
~RuleBaseFacility()
Cleans up the facility ruleset.
Definition: RuleBaseFacility.cpp:37
bool isMindShield() const
Gets if the facility is a mind shield.
Definition: RuleBaseFacility.cpp:170
int getPersonnel() const
Gets the facility's personnel capacity.
Definition: RuleBaseFacility.cpp:230
int getListOrder() const
Gets the facility's list weight.
Definition: RuleBaseFacility.cpp:356
int getBuildCost() const
Gets the facility's construction cost.
Definition: RuleBaseFacility.cpp:190
int getHitRatio() const
Gets the facility's weapon hit ratio.
Definition: RuleBaseFacility.cpp:319
int getLaboratories() const
Gets the facility's laboratory space.
Definition: RuleBaseFacility.cpp:259
int getStorage() const
Gets the facility's storage capacity.
Definition: RuleBaseFacility.cpp:220
int getRadarRange() const
Gets the facility's radar range.
Definition: RuleBaseFacility.cpp:289
int getBuildTime() const
Gets the facility's construction time.
Definition: RuleBaseFacility.cpp:200
int getMonthlyCost() const
Gets the facility's monthly cost.
Definition: RuleBaseFacility.cpp:210
int getPsiLaboratories() const
Gets the facility's psi-training capacity.
Definition: RuleBaseFacility.cpp:279
int getSpriteFacility() const
Gets the facility's content sprite.
Definition: RuleBaseFacility.cpp:130
int getRadarChance() const
Gets the facility's detection chance.
Definition: RuleBaseFacility.cpp:299
Definition: BaseInfoState.cpp:40
Represents a specific type of base facility.
Definition: RuleBaseFacility.h:35