tmxparser  2.1.0
 All Classes Functions Variables Pages
Public Member Functions | List of all members
Tmx::Tileset Class Reference

A class used for storing information about each of the tilesets. More...

#include <TmxTileset.h>

Public Member Functions

void Parse (const tinyxml2::XMLNode *tilesetNode, const std::string &file_path)
 Parse a tileset element.
 
int GetFirstGid () const
 Returns the global id of the first tile.
 
const std::string & GetName () const
 Returns the name of the tileset.
 
int GetTileWidth () const
 Get the width of a single tile.
 
int GetTileHeight () const
 Get the height of a single tile.
 
int GetMargin () const
 Get the margin of the tileset.
 
int GetSpacing () const
 Get the spacing of the tileset.
 
int GetTileCount () const
 Get the number of tiles in this tileset(since 0.13)
 
int GetColumns () const
 Get the number of columns in the tileset(since 0.15)
 
const Tmx::TileOffsetGetTileOffset () const
 Get the offset of tileset.
 
const Tmx::ImageGetImage () const
 Returns a variable containing information about the image of the tileset. More...
 
const Tmx::TileGetTile (int index) const
 Returns a a single tile of the set.
 
const std::vector< Tmx::Tile * > & GetTiles () const
 Returns the whole tile collection.
 
const Tmx::PropertySetGetProperties () const
 Get a set of properties regarding the tile.
 

Detailed Description

A class used for storing information about each of the tilesets.

A tileset is a collection of tiles, of whom each may contain properties. This class has a property set.

Member Function Documentation

const Tmx::Image* Tmx::Tileset::GetImage ( ) const
inline

Returns a variable containing information about the image of the tileset.


The documentation for this class was generated from the following files: