19 #ifndef OPENXCOM_ALIENDEPLOYMENT_H
20 #define OPENXCOM_ALIENDEPLOYMENT_H
24 #include <yaml-cpp/yaml.h>
34 std::vector<std::string> items;
40 int lowQty, highQty, dQty;
41 int percentageOutsideUfo;
42 std::vector<ItemSet> itemSets;
59 std::vector<DeploymentData> _data;
60 int _width, _length, _height, _civilians;
61 std::vector<std::string> _terrains;
63 std::string _nextStage;
70 void load(
const YAML::Node& node);
93 struct convert<OpenXcom::ItemSet>
104 if (!node.IsSequence())
107 rhs.items = node.as< std::vector<std::string> >(rhs.items);
std::vector< std::string > getTerrains() const
Gets the terrain for battlescape generation.
Definition: AlienDeployment.cpp:136
~AlienDeployment()
Cleans up the Alien Deployment ruleset.
Definition: AlienDeployment.cpp:70
std::string getType() const
Gets the Alien Deployment's type.
Definition: AlienDeployment.cpp:96
std::vector< DeploymentData > * getDeploymentData()
Gets a pointer to the data.
Definition: AlienDeployment.cpp:105
void load(const YAML::Node &node)
Loads Alien Deployment data from YAML.
Definition: AlienDeployment.cpp:78
Definition: AlienDeployment.h:32
int getCivilians() const
Gets civilians.
Definition: AlienDeployment.cpp:127
void getDimensions(int *width, int *length, int *height)
Gets dimensions.
Definition: AlienDeployment.cpp:116
AlienDeployment(const std::string &type)
Creates a blank Alien Deployment ruleset.
Definition: AlienDeployment.cpp:63
int getShade() const
Gets the shade level for battlescape generation.
Definition: AlienDeployment.cpp:145
Definition: AlienDeployment.h:37
Represents a specific type of Alien Deployment.
Definition: AlienDeployment.h:55
std::string getNextStage() const
Gets the next stage of the mission.
Definition: AlienDeployment.cpp:154