![]() |
Gamedev Framework (gf)
0.10.0
A C++14 framework for 2D games
|
A TMX map. More...
#include <gf/Tmx.h>
Public Member Functions | |
const TmxTileset * | getTileSetFromGID (unsigned gid) const noexcept |
Get the tileset corresponding to a global id. More... | |
void | visitLayers (TmxVisitor &visitor) const |
Visit the layers with a visitor. More... | |
bool | loadFromFile (const Path &filename) |
Load a TMX file. More... | |
Public Attributes | |
TmxProperties | properties |
The properties of the map. More... | |
std::string | version |
The version of the map. More... | |
std::string | tiledVersion |
The tiled version of the map. More... | |
TmxOrientation | orientation |
The orientation of the map. More... | |
TmxRenderOrder | renderOrder |
The render order of the map. More... | |
Vector2u | mapSize |
The size of the map. More... | |
Vector2u | tileSize |
The size of the tiles. More... | |
unsigned | hexSideLength |
The length of the side for hexagonal map. More... | |
TmxStaggerAxis | staggerAxis |
The stagger axis for hexagonal map. More... | |
TmxStaggerIndex | staggerIndex |
The stagger index for hexagonal map. More... | |
Color4u | backgroundColor |
The background color. More... | |
unsigned | nextObjectId |
The next object id. More... | |
std::vector< TmxTileset > | tilesets |
The tilesets used in the map. More... | |
std::vector< std::unique_ptr< TmxLayer > > | layers |
The layers of the map. More... | |
A TMX map.
|
noexcept |
Get the tileset corresponding to a global id.
gid | A global id |
bool gf::TmxLayers::loadFromFile | ( | const Path & | filename | ) |
Load a TMX file.
filename | The name of the TMX file |
void gf::TmxLayers::visitLayers | ( | TmxVisitor & | visitor | ) | const |
Visit the layers with a visitor.
visitor | the visitor |
Color4u gf::TmxLayers::backgroundColor |
The background color.
unsigned gf::TmxLayers::hexSideLength |
The length of the side for hexagonal map.
std::vector<std::unique_ptr<TmxLayer> > gf::TmxLayers::layers |
The layers of the map.
Vector2u gf::TmxLayers::mapSize |
The size of the map.
unsigned gf::TmxLayers::nextObjectId |
The next object id.
TmxOrientation gf::TmxLayers::orientation |
The orientation of the map.
TmxProperties gf::TmxLayers::properties |
The properties of the map.
TmxRenderOrder gf::TmxLayers::renderOrder |
The render order of the map.
TmxStaggerAxis gf::TmxLayers::staggerAxis |
The stagger axis for hexagonal map.
TmxStaggerIndex gf::TmxLayers::staggerIndex |
The stagger index for hexagonal map.
std::string gf::TmxLayers::tiledVersion |
The tiled version of the map.
std::vector<TmxTileset> gf::TmxLayers::tilesets |
The tilesets used in the map.
Vector2u gf::TmxLayers::tileSize |
The size of the tiles.
std::string gf::TmxLayers::version |
The version of the map.