![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Represents a Terrain Map Block. More...
#include <MapBlock.h>
Public Member Functions | |
MapBlock (const std::string &name) | |
MapBlock construction. | |
~MapBlock () | |
MapBlock destruction. | |
void | load (const YAML::Node &node) |
Loads the map block from YAML. More... | |
std::string | getName () const |
Gets the mapblock's name (used for MAP generation). More... | |
int | getSizeX () const |
Gets the mapblock's x size. More... | |
int | getSizeY () const |
Gets the mapblock's y size. More... | |
int | getSizeZ () const |
Gets the mapblock's z size. More... | |
void | setSizeZ (int size_z) |
Sets the mapblock's z size. More... | |
bool | isInGroup (int group) |
Returns if this mapblock is from the group specified. More... | |
bool | isFloorRevealed (int floor) |
Gets if this floor should be revealed or not. | |
std::map< std::string, std::vector< Position > > * | getItems () |
Gets the layout for any items that belong in this map block. More... | |
Represents a Terrain Map Block.
It contains constant info about this mapblock, like its name, dimensions, attributes... Map blocks are stored in RuleTerrain objects.
std::map< std::string, std::vector< Position > > * OpenXcom::MapBlock::getItems | ( | ) |
Gets the layout for any items that belong in this map block.
Gets the items and their positioning for any items associated with this block.
std::string OpenXcom::MapBlock::getName | ( | ) | const |
Gets the mapblock's name (used for MAP generation).
Gets the MapBlock name (string).
int OpenXcom::MapBlock::getSizeX | ( | ) | const |
int OpenXcom::MapBlock::getSizeY | ( | ) | const |
int OpenXcom::MapBlock::getSizeZ | ( | ) | const |
bool OpenXcom::MapBlock::isInGroup | ( | int | group | ) |
Returns if this mapblock is from the group specified.
Gets the type of mapblock.
void OpenXcom::MapBlock::load | ( | const YAML::Node & | node | ) |
Loads the map block from YAML.
Loads the map block from a YAML file.
node | YAML node. |
void OpenXcom::MapBlock::setSizeZ | ( | int | size_z | ) |