19 #ifndef OPENXCOM_MAPDATASET_H
20 #define OPENXCOM_MAPDATASET_H
25 #include <yaml-cpp/yaml.h>
44 std::vector<MapData*> _objects;
53 void load(
const YAML::Node& node);
55 static void loadLOFTEMPS(
const std::string &filename, std::vector<Uint16> *voxelData);
static MapData * getBlankFloorTile()
Gets a blank floor tile.
Definition: MapDataSet.cpp:297
~MapDataSet()
MapDataSet destruction.
Definition: MapDataSet.cpp:44
MapDataSet(const std::string &name)
MapDataSet construction.
Definition: MapDataSet.cpp:37
static void loadLOFTEMPS(const std::string &filename, std::vector< Uint16 > *voxelData)
Loads voxeldata from a DAT file.
Definition: MapDataSet.cpp:268
Container of a set of surfaces.
Definition: SurfaceSet.h:38
SurfaceSet * getSurfaceset() const
Gets the surfaces in this dataset.
Definition: MapDataSet.cpp:92
std::string getName() const
Gets the dataset name (used for MAP generation).
Definition: MapDataSet.cpp:65
MapData is the smallest piece of a Battlescape terrain, holding info about a certain object...
Definition: MapData.h:52
void unloadData()
Unloads to free memory.
Definition: MapDataSet.cpp:249
size_t getSize() const
Gets the dataset size.
Definition: MapDataSet.cpp:74
std::vector< MapData * > * getObjects()
Gets the objects in this dataset.
Definition: MapDataSet.cpp:83
static MapData * getScorchedEarthTile()
Gets a scorched earth tile.
Definition: MapDataSet.cpp:306
void loadData()
Loads the objects from an MCD file.
Definition: MapDataSet.cpp:101
Represents a Terrain Map Datafile.
Definition: MapDataSet.h:40
void load(const YAML::Node &node)
Loads the map data set from YAML.
Definition: MapDataSet.cpp:53