19 #ifndef OPENXCOM_RULEBASEFACILITY_H
20 #define OPENXCOM_RULEBASEFACILITY_H
24 #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,
int modIndex,
int listOrder);
const std::vector< std::string > & getRequirements() const
Gets the facility's requirements.
Definition: RuleBaseFacility.cpp:115
int getSpriteFacility() const
Gets the facility's content sprite.
Definition: RuleBaseFacility.cpp:135
int getLaboratories() const
Gets the facility's laboratory space.
Definition: RuleBaseFacility.cpp:264
RuleBaseFacility(const std::string &type)
Creates a blank facility ruleset.
Definition: RuleBaseFacility.cpp:29
int getFireSound() const
Gets the facility's fire sound.
Definition: RuleBaseFacility.cpp:352
bool isMindShield() const
Gets if the facility is a mind shield.
Definition: RuleBaseFacility.cpp:175
int getDefenseValue() const
Gets the facility's defense value.
Definition: RuleBaseFacility.cpp:314
int getPersonnel() const
Gets the facility's personnel capacity.
Definition: RuleBaseFacility.cpp:235
bool isLift() const
Gets if the facility is an access lift.
Definition: RuleBaseFacility.cpp:155
~RuleBaseFacility()
Cleans up the facility ruleset.
Definition: RuleBaseFacility.cpp:36
std::string getMapName() const
Gets the facility's battlescape map name.
Definition: RuleBaseFacility.cpp:334
int getPsiLaboratories() const
Gets the facility's psi-training capacity.
Definition: RuleBaseFacility.cpp:284
bool isGravShield() const
Gets if the facility is a grav shield.
Definition: RuleBaseFacility.cpp:185
int getSize() const
Gets the facility's size.
Definition: RuleBaseFacility.cpp:144
void load(const YAML::Node &node, int modIndex, int listOrder)
Loads the facility from YAML.
Definition: RuleBaseFacility.cpp:46
int getWorkshops() const
Gets the facility's workshop space.
Definition: RuleBaseFacility.cpp:274
int getAliens() const
Gets the facility's alien capacity.
Definition: RuleBaseFacility.cpp:245
bool isHyperwave() const
Gets if the facility has hyperwave detection.
Definition: RuleBaseFacility.cpp:165
int getBuildTime() const
Gets the facility's construction time.
Definition: RuleBaseFacility.cpp:205
std::string getType() const
Gets the facility's type.
Definition: RuleBaseFacility.cpp:105
int getRadarRange() const
Gets the facility's radar range.
Definition: RuleBaseFacility.cpp:294
int getSpriteShape() const
Gets the facility's shape sprite.
Definition: RuleBaseFacility.cpp:125
int getHitSound() const
Gets the facility's hit sound.
Definition: RuleBaseFacility.cpp:343
int getMonthlyCost() const
Gets the facility's monthly cost.
Definition: RuleBaseFacility.cpp:215
int getHitRatio() const
Gets the facility's weapon hit ratio.
Definition: RuleBaseFacility.cpp:324
int getCrafts() const
Gets the facility's craft capacity.
Definition: RuleBaseFacility.cpp:254
int getListOrder() const
Gets the facility's list weight.
Definition: RuleBaseFacility.cpp:361
int getStorage() const
Gets the facility's storage capacity.
Definition: RuleBaseFacility.cpp:225
int getRadarChance() const
Gets the facility's detection chance.
Definition: RuleBaseFacility.cpp:304
Represents a specific type of base facility.
Definition: RuleBaseFacility.h:35
int getBuildCost() const
Gets the facility's construction cost.
Definition: RuleBaseFacility.cpp:195