22 #include <yaml-cpp/yaml.h> 42 std::vector<MapDataSet*> _mapDataSets;
43 std::vector<MapBlock*> _mapBlocks;
44 std::string _name, _script;
45 std::vector<std::string> _civilianTypes, _music;
46 int _minDepth, _maxDepth, _ambience;
47 double _ambientVolume;
52 void load(
const YAML::Node& node,
Mod *mod);
76 const std::vector<std::string> &
getMusic()
const;
77 double getAmbientVolume()
const;
std::string getName() const
Gets the terrain's name (used for MAP generation).
Definition: RuleTerrain.cpp:121
int getMaxDepth() const
Gets the maximum depth.
Definition: RuleTerrain.cpp:224
Represents a Terrain Map Block.
Definition: MapBlock.h:37
Contains all the game-specific static data that never changes throughout the game, like rulesets and resources.
Definition: Mod.h:87
MapData * getMapData(unsigned int *id, int *mapDataSetID) const
Gets the mapdata object.
Definition: RuleTerrain.cpp:177
MapBlock * getMapBlock(const std::string &name)
Gets a mapblock given its name.
Definition: RuleTerrain.cpp:161
MapBlock * getRandomMapBlock(int maxSizeX, int maxSizeY, int group, bool force=true)
Gets a random mapblock.
Definition: RuleTerrain.cpp:133
std::vector< MapDataSet * > * getMapDataSets()
Gets the terrain's mapdatafiles.
Definition: RuleTerrain.cpp:112
void load(const YAML::Node &node, Mod *mod)
Loads the terrain from YAML.
Definition: RuleTerrain.cpp:52
MapData is the smallest piece of a Battlescape terrain, holding info about a certain object...
Definition: MapData.h:51
std::string getScript() const
Gets the generation script name.
Definition: RuleTerrain.cpp:242
std::vector< std::string > getCivilianTypes() const
Gets the civilian types to use.
Definition: RuleTerrain.cpp:206
int getAmbience() const
Gets the ambient sound effect.
Definition: RuleTerrain.cpp:233
std::vector< MapBlock * > * getMapBlocks()
Gets the terrain's mapblocks.
Definition: RuleTerrain.cpp:103
RuleTerrain(const std::string &name)
RuleTerrain construction.
Definition: RuleTerrain.cpp:32
int getMinDepth() const
Gets the minimum depth.
Definition: RuleTerrain.cpp:215
~RuleTerrain()
Ruleterrain only holds mapblocks.
Definition: RuleTerrain.cpp:39
const std::vector< std::string > & getMusic() const
Gets the list of music to pick from.
Definition: RuleTerrain.cpp:251
Represents a specific type of Battlescape Terrain.
Definition: RuleTerrain.h:39
Definition: BaseInfoState.cpp:40