![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Represents a Terrain Map Datafile. More...
#include <MapDataSet.h>
Public Member Functions | |
| MapDataSet (const std::string &name) | |
| MapDataSet construction. | |
| ~MapDataSet () | |
| MapDataSet destruction. | |
| void | load (const YAML::Node &node) |
| Loads the map data set from YAML. More... | |
| std::string | getName () const |
| Gets the dataset name (used for MAP generation). More... | |
| size_t | getSize () const |
| Gets the dataset size. More... | |
| std::vector< MapData * > * | getObjects () |
| Gets the objects in this dataset. More... | |
| SurfaceSet * | getSurfaceset () const |
| Gets the surfaces in this dataset. More... | |
| void | loadData () |
| Loads the objects from an MCD file. More... | |
| void | unloadData () |
| Unloads to free memory. More... | |
Static Public Member Functions | |
| static void | loadLOFTEMPS (const std::string &filename, std::vector< Uint16 > *voxelData) |
| Loads voxeldata from a DAT file. More... | |
| static MapData * | getBlankFloorTile () |
| Gets a blank floor tile. More... | |
| static MapData * | getScorchedEarthTile () |
| Gets a scorched earth tile. More... | |
Represents a Terrain Map Datafile.
Which corresponds to an XCom MCD & PCK file. The list of map datafiles is stored in RuleSet, but referenced in RuleTerrain.
|
static |
Gets a blank floor tile.
| std::string OpenXcom::MapDataSet::getName | ( | ) | const |
Gets the dataset name (used for MAP generation).
Gets the MapDataSet name (string).
| std::vector< MapData * > * OpenXcom::MapDataSet::getObjects | ( | ) |
Gets the objects in this dataset.
|
static |
Gets a scorched earth tile.
| size_t OpenXcom::MapDataSet::getSize | ( | ) | const |
| SurfaceSet * OpenXcom::MapDataSet::getSurfaceset | ( | ) | const |
Gets the surfaces in this dataset.
| void OpenXcom::MapDataSet::load | ( | const YAML::Node & | node | ) |
Loads the map data set from YAML.
Loads the map data set from a YAML file.
| node | YAML node. |
| void OpenXcom::MapDataSet::loadData | ( | ) |
Loads the objects from an MCD file.
Loads terrain data in XCom format (MCD & PCK files).
|
static |
Loads voxeldata from a DAT file.
Loads the LOFTEMPS.DAT into the ruleset voxeldata.
| filename | Filename of the DAT file. |
| voxelData | The ruleset. |
| void OpenXcom::MapDataSet::unloadData | ( | ) |
Unloads to free memory.
Unloads the terrain data.
1.8.14