19 #ifndef OPENXCOM_BASEFACILITY_H
20 #define OPENXCOM_BASEFACILITY_H
22 #include <yaml-cpp/yaml.h>
27 class RuleBaseFacility;
43 int _x, _y, _buildTime;
44 Craft *_craftForDrawing;
51 void load(
const YAML::Node& node);
53 YAML::Node
save()
const;
Represents a craft stored in a base.
Definition: Craft.h:44
YAML::Node save() const
Saves the base facility to YAML.
Definition: BaseFacility.cpp:57
int getY() const
Gets the facility's Y position.
Definition: BaseFacility.cpp:102
Represents a base facility placed in a base.
Definition: BaseFacility.h:38
bool inUse() const
Checks if the facility is currently in use.
Definition: BaseFacility.cpp:150
void load(const YAML::Node &node)
Loads the base facility from YAML.
Definition: BaseFacility.cpp:46
Craft * getCraft() const
Gets craft, used for drawing facility.
Definition: BaseFacility.cpp:169
void setCraft(Craft *craft)
Sets craft, used for drawing facility.
Definition: BaseFacility.cpp:178
void setY(int y)
Sets the facility's Y position.
Definition: BaseFacility.cpp:112
void setBuildTime(int time)
Sets the facility's construction time.
Definition: BaseFacility.cpp:132
Represents a player base on the globe.
Definition: Base.h:47
RuleBaseFacility * getRules() const
Gets the facility's ruleset.
Definition: BaseFacility.cpp:72
int getX() const
Gets the facility's X position.
Definition: BaseFacility.cpp:82
void build()
Builds up the facility.
Definition: BaseFacility.cpp:140
BaseFacility(RuleBaseFacility *rules, Base *base)
Creates a base facility of the specified type.
Definition: BaseFacility.cpp:31
int getBuildTime() const
Gets the facility's construction time.
Definition: BaseFacility.cpp:122
void setX(int x)
Sets the facility's X position.
Definition: BaseFacility.cpp:92
~BaseFacility()
Cleans up the base facility.
Definition: BaseFacility.cpp:38
Represents a specific type of base facility.
Definition: RuleBaseFacility.h:35