19 #ifndef OPENXCOM_RULETERRAIN_H
20 #define OPENXCOM_RULETERRAIN_H
24 #include <yaml-cpp/yaml.h>
44 std::vector<MapDataSet*> _mapDataSets;
45 std::vector<MapBlock*> _mapBlocks;
48 std::vector<int> _textures, _roadTypeOdds;
49 std::vector<std::string> _civilianTypes;
55 void load(
const YAML::Node& node,
Ruleset *ruleset);
std::vector< int > * getTextures()
Gets the array of globe texture IDs this terrain is loaded on.
Definition: RuleTerrain.cpp:213
int getLargeBlockLimit() const
Gets the maximum amount of large blocks in this terrain.
Definition: RuleTerrain.cpp:193
Represents a Terrain Map Block.
Definition: MapBlock.h:37
std::string getName() const
Gets the terrain's name (used for MAP generation).
Definition: RuleTerrain.cpp:111
MapBlock * getMapBlock(const std::string &name)
Gets a mapblock given its name.
Definition: RuleTerrain.cpp:155
void load(const YAML::Node &node, Ruleset *ruleset)
Loads the terrain from YAML.
Definition: RuleTerrain.cpp:52
std::vector< std::string > getCivilianTypes() const
Gets teh civilian types to use.
Definition: RuleTerrain.cpp:232
std::vector< MapDataSet * > * getMapDataSets()
Gets the terrain's mapdatafiles.
Definition: RuleTerrain.cpp:102
Set of rules and stats for a game.
Definition: Ruleset.h:69
void resetMapBlocks()
Resets the remaining uses of each mapblock.
Definition: RuleTerrain.cpp:201
MapBlock * getRandomMapBlock(int maxsize, MapBlockType type, bool force=false)
Gets a random mapblock.
Definition: RuleTerrain.cpp:123
std::vector< int > getRoadTypeOdds() const
Gets road type odds.
Definition: RuleTerrain.cpp:241
MapData is the smallest piece of a Battlescape terrain, holding info about a certain object...
Definition: MapData.h:52
MapData * getMapData(int *id, int *mapDataSetID) const
Gets the mapdata object.
Definition: RuleTerrain.cpp:171
std::vector< MapBlock * > * getMapBlocks()
Gets the terrain's mapblocks.
Definition: RuleTerrain.cpp:93
RuleTerrain(const std::string &name)
RuleTerrain construction.
Definition: RuleTerrain.cpp:32
~RuleTerrain()
Ruleterrain only holds mapblocks.
Definition: RuleTerrain.cpp:39
int getHemisphere() const
Gets the hemishpere this terrain occurs on.
Definition: RuleTerrain.cpp:223
Represents a specific type of Battlescape Terrain.
Definition: RuleTerrain.h:41