OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
OpenXcom::AlienDeployment Class Reference

Represents a specific type of Alien Deployment. More...

#include <AlienDeployment.h>

Public Member Functions

 AlienDeployment (const std::string &type)
 Creates a blank Alien Deployment ruleset. More...
 
 ~AlienDeployment ()
 Cleans up the Alien Deployment ruleset.
 
void load (const YAML::Node &node)
 Loads Alien Deployment data from YAML. More...
 
std::string getType () const
 Gets the Alien Deployment's type. More...
 
std::vector< DeploymentData > * getDeploymentData ()
 Gets a pointer to the data. More...
 
void getDimensions (int *width, int *length, int *height)
 Gets dimensions. More...
 
int getCivilians () const
 Gets civilians. More...
 
std::vector< std::string > getTerrains () const
 Gets the terrain for battlescape generation. More...
 
int getShade () const
 Gets the shade level for battlescape generation. More...
 
std::string getNextStage () const
 Gets the next stage of the mission. More...
 

Detailed Description

Represents a specific type of Alien Deployment.

Contains constant info about a Alien Deployment like the number of aliens for each alien type and what items they carry (itemset depends on alien technology advancement level 0, 1 or 2).

Constructor & Destructor Documentation

OpenXcom::AlienDeployment::AlienDeployment ( const std::string &  type)

Creates a blank Alien Deployment ruleset.

Creates a blank ruleset for a certain type of deployment data.

Parameters
typeString defining the type.

Member Function Documentation

int OpenXcom::AlienDeployment::getCivilians ( ) const

Gets civilians.

Gets the number of civilians.

Returns
The number of civilians.
std::vector< DeploymentData > * OpenXcom::AlienDeployment::getDeploymentData ( )

Gets a pointer to the data.

Returns
Pointer to the data.
void OpenXcom::AlienDeployment::getDimensions ( int *  width,
int *  length,
int *  height 
)

Gets dimensions.

Parameters
widthWidth.
lengthLength.
heightHeight.
std::string OpenXcom::AlienDeployment::getNextStage ( ) const

Gets the next stage of the mission.

Returns
The next stage of the mission.
int OpenXcom::AlienDeployment::getShade ( ) const

Gets the shade level for battlescape generation.

Returns
The shade level.
std::vector< std::string > OpenXcom::AlienDeployment::getTerrains ( ) const

Gets the terrain for battlescape generation.

Returns
The terrain.
std::string OpenXcom::AlienDeployment::getType ( ) const

Gets the Alien Deployment's type.

Returns the language string that names this deployment.

Each deployment type has a unique name.

Returns
Deployment name.
void OpenXcom::AlienDeployment::load ( const YAML::Node &  node)

Loads Alien Deployment data from YAML.

Loads the Deployment from a YAML file.

Parameters
nodeYAML node.

The documentation for this class was generated from the following files: