33 #include "TmxPropertySet.h"
58 void Parse(
const tinyxml2::XMLNode *tilesetNode,
const std::string& file_path);
64 const std::string &
GetName()
const {
return name; }
95 const std::vector< Tmx::Tile *> &
GetTiles()
const {
return tiles; }
115 std::vector< Tmx::Terrain* > terrainTypes;
116 std::vector< Tmx::Tile* > tiles;
int GetMargin() const
Get the margin of the tileset.
Definition: TmxTileset.h:73
int GetTileHeight() const
Get the height of a single tile.
Definition: TmxTileset.h:70
int GetFirstGid() const
Returns the global id of the first tile.
Definition: TmxTileset.h:61
const std::string & GetName() const
Returns the name of the tileset.
Definition: TmxTileset.h:64
A class used for used to specify an offset in pixels, to be applied when drawing a tile from the rela...
Definition: TmxTileOffset.h:43
int GetSpacing() const
Get the spacing of the tileset.
Definition: TmxTileset.h:76
A class used for storing information about each of the tilesets.
Definition: TmxTileset.h:51
void Parse(const tinyxml2::XMLNode *tilesetNode, const std::string &file_path)
Parse a tileset element.
Definition: TmxTileset.cpp:102
This class contains a map of properties.
Definition: TmxPropertySet.h:47
int GetTileWidth() const
Get the width of a single tile.
Definition: TmxTileset.h:67
int GetColumns() const
Get the number of columns in the tileset(since 0.15)
Definition: TmxTileset.h:82
const Tmx::PropertySet & GetProperties() const
Get a set of properties regarding the tile.
Definition: TmxTileset.h:98
const Tmx::TileOffset * GetTileOffset() const
Get the offset of tileset.
Definition: TmxTileset.h:85
int GetTileCount() const
Get the number of tiles in this tileset(since 0.13)
Definition: TmxTileset.h:79
const Tmx::Image * GetImage() const
Returns a variable containing information about the image of the tileset.
Definition: TmxTileset.h:89
const std::vector< Tmx::Tile * > & GetTiles() const
Returns the whole tile collection.
Definition: TmxTileset.h:95
Class to contain information about every tile in the tileset/tiles element.
Definition: TmxTile.h:51
const Tmx::Tile * GetTile(int index) const
Returns a a single tile of the set.
Definition: TmxTileset.cpp:187
A class used for storing information about an image within a tileset.
Definition: TmxImage.h:42