22 #include <yaml-cpp/yaml.h> 27 enum MapBlockType {MT_UNDEFINED = -1, MT_DEFAULT, MT_LANDINGZONE, MT_EWROAD, MT_NSROAD, MT_CROSSING};
41 int _size_x, _size_y, _size_z;
42 std::vector<int> _groups, _revealedFloors;
43 std::map<std::string, std::vector<Position> > _items;
48 void load(
const YAML::Node& node);
64 std::map<std::string, std::vector<Position> > *
getItems();
int getSizeX() const
Gets the mapblock's x size.
Definition: MapBlock.cpp:99
~MapBlock()
MapBlock destruction.
Definition: MapBlock.cpp:39
std::map< std::string, std::vector< Position > > * getItems()
Gets the layout for any items that belong in this map block.
Definition: MapBlock.cpp:152
bool isFloorRevealed(int floor)
Gets if this floor should be revealed or not.
Definition: MapBlock.cpp:143
MapBlock(const std::string &name)
MapBlock construction.
Definition: MapBlock.cpp:31
Represents a Terrain Map Block.
Definition: MapBlock.h:37
void setSizeZ(int size_z)
Sets the mapblock's z size.
Definition: MapBlock.cpp:117
int getSizeZ() const
Gets the mapblock's z size.
Definition: MapBlock.cpp:126
void load(const YAML::Node &node)
Loads the map block from YAML.
Definition: MapBlock.cpp:47
bool isInGroup(int group)
Returns if this mapblock is from the group specified.
Definition: MapBlock.cpp:135
int getSizeY() const
Gets the mapblock's y size.
Definition: MapBlock.cpp:108
std::string getName() const
Gets the mapblock's name (used for MAP generation).
Definition: MapBlock.cpp:90
Definition: BaseInfoState.cpp:40