![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Represents the relations between a Geoscape texture and the corresponding Battlescape mission attributes. More...
#include <Texture.h>
Public Member Functions | |
| Texture (int id) | |
| Creates a new texture with mission data. More... | |
| ~Texture () | |
| Cleans up the texture. | |
| void | load (const YAML::Node &node) |
| Loads the texture from YAML. More... | |
| std::vector< TerrainCriteria > * | getTerrain () |
| Gets the list of terrain criteria. More... | |
| std::string | getRandomTerrain (Target *target) const |
| Gets a random texture terrain for a given target. More... | |
| const std::map< std::string, int > & | getDeployments () const |
| Gets the alien deployment for this texture. More... | |
| std::string | getRandomDeployment () const |
| Gets a random deployment. More... | |
Represents the relations between a Geoscape texture and the corresponding Battlescape mission attributes.
| OpenXcom::Texture::Texture | ( | int | id | ) |
Creates a new texture with mission data.
Initializes a globe texture.
| id | Texture identifier. |
| const std::map< std::string, int > & OpenXcom::Texture::getDeployments | ( | ) | const |
Gets the alien deployment for this texture.
Returns the list of deployments associated with this texture.
| std::string OpenXcom::Texture::getRandomDeployment | ( | ) | const |
Gets a random deployment.
Calculates a random deployment for a mission target based on the texture's available deployments.
| std::string OpenXcom::Texture::getRandomTerrain | ( | Target * | target | ) | const |
Gets a random texture terrain for a given target.
Calculates a random terrain for a mission target based on the texture's available terrain criteria.
| target | Pointer to the mission target. |
| std::vector< TerrainCriteria > * OpenXcom::Texture::getTerrain | ( | ) |
Gets the list of terrain criteria.
Returns the list of terrain criteria associated with this texture.
| void OpenXcom::Texture::load | ( | const YAML::Node & | node | ) |
Loads the texture from YAML.
Loads the texture type from a YAML file.
| node | YAML node. |
1.8.14