TMXMapInfo contains the information about the map like: More...
#include <CCTMXXMLParser.h>
Public Member Functions | |
| TMXMapInfo () | |
| virtual | ~TMXMapInfo () |
| bool | initWithTMXFile (const std::string &tmxFile) |
| initializes a TMX format with a tmx file More... | |
| local | initWithTMXFile ( local tmxFile) |
| initializes a TMX format with a tmx file More... | |
| bool | initWithXML (const std::string &tmxString, const std::string &resourcePath) |
| initializes a TMX format with an XML string and a TMX resource path More... | |
| local | initWithXML ( local tmxString, local resourcePath) |
| initializes a TMX format with an XML string and a TMX resource path More... | |
| bool | parseXMLFile (const std::string &xmlFilename) |
| initializes parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file More... | |
| bool | parseXMLString (const std::string &xmlString) |
| ValueMapIntKey & | getTileProperties () |
| void | setTileProperties (const ValueMapIntKey &tileProperties) |
| int | getOrientation () const |
| map orientation More... | |
| void | setOrientation (int orientation) |
| const Size & | getMapSize () const |
| map width & height More... | |
| local | getMapSize () |
| map width & height More... | |
| void | setMapSize (const Size &mapSize) |
| const Size & | getTileSize () const |
| tiles width & height More... | |
| local | getTileSize () |
| tiles width & height More... | |
| void | setTileSize (const Size &tileSize) |
| const Vector< TMXLayerInfo * > & | getLayers () const |
| Layers. More... | |
| Vector< TMXLayerInfo * > & | getLayers () |
| local | getLayers () |
| void | setLayers (const Vector< TMXLayerInfo * > &layers) |
| const Vector< TMXTilesetInfo * > & | getTilesets () const |
| tilesets More... | |
| local | getTilesets () |
| tilesets More... | |
| Vector< TMXTilesetInfo * > & | getTilesets () |
| local | getTilesets () |
| void | setTilesets (const Vector< TMXTilesetInfo * > &tilesets) |
| const Vector< TMXObjectGroup * > & | getObjectGroups () const |
| ObjectGroups. More... | |
| Vector< TMXObjectGroup * > & | getObjectGroups () |
| local | getObjectGroups () |
| void | setObjectGroups (const Vector< TMXObjectGroup * > &groups) |
| int | getParentElement () const |
| parent element More... | |
| void | setParentElement (int element) |
| int | getParentGID () const |
| parent GID More... | |
| void | setParentGID (int gid) |
| int | getLayerAttribs () const |
| layer attribs More... | |
| void | setLayerAttribs (int layerAttribs) |
| bool | isStoringCharacters () const |
| is storing characters? More... | |
| CC_DEPRECATED_ATTRIBUTE bool | getStoringCharacters () const |
| void | setStoringCharacters (bool storingCharacters) |
| const ValueMap & | getProperties () const |
| properties More... | |
| ValueMap & | getProperties () |
| void | setProperties (const ValueMap &properties) |
| local | setProperties ( local properties) |
| void | startElement (void *ctx, const char *name, const char **atts) |
| void | endElement (void *ctx, const char *name) |
| void | textHandler (void *ctx, const char *ch, int len) |
| const std::string & | getCurrentString () const |
| void | setCurrentString (const std::string ¤tString) |
| const std::string & | getTMXFileName () const |
| void | setTMXFileName (const std::string &fileName) |
| local | setTMXFileName ( local fileName) |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| void | release () |
| Release the ownership immediately. More... | |
| local | release () |
| Release the ownership immediately. More... | |
| Ref * | autorelease () |
| Release the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
Public Member Functions inherited from SAXDelegator | |
| virtual | ~SAXDelegator () |
Static Public Member Functions | |
| static TMXMapInfo * | create (const std::string &tmxFile) |
| creates a TMX Format with a tmx file More... | |
| local | create ( local tmxFile) |
| creates a TMX Format with a tmx file More... | |
| static TMXMapInfo * | createWithXML (const std::string &tmxString, const std::string &resourcePath) |
| creates a TMX Format with an XML string and a TMX resource path More... | |
| local | createWithXML ( local tmxString, local resourcePath) |
| creates a TMX Format with an XML string and a TMX resource path More... | |
| static CC_DEPRECATED_ATTRIBUTE TMXMapInfo * | formatWithTMXFile (const char *tmxFile) |
| creates a TMX Format with a tmx file More... | |
| local | formatWithTMXFile ( local tmxFile) |
| creates a TMX Format with a tmx file More... | |
| static CC_DEPRECATED_ATTRIBUTE TMXMapInfo * | formatWithXML (const char *tmxString, const char *resourcePath) |
| creates a TMX Format with an XML string and a TMX resource path More... | |
Protected Member Functions | |
| void | internalInit (const std::string &tmxFileName, const std::string &resourcePath) |
Protected Member Functions inherited from Ref | |
| Ref () | |
| Constructor. More... | |
| Ref () | |
| Constructor. More... | |
Protected Attributes | |
| int | _orientation |
| map orientation More... | |
| Size | _mapSize |
| map width & height More... | |
| var | _mapSize |
| map width & height More... | |
| local | _mapSize |
| map width & height More... | |
| Size | _tileSize |
| tiles width & height More... | |
| Vector< TMXLayerInfo * > | _layers |
| Layers. More... | |
| var | _layers |
| Layers. More... | |
| local | _layers |
| Layers. More... | |
| Vector< TMXTilesetInfo * > | _tilesets |
| tilesets More... | |
| var | _tilesets |
| tilesets More... | |
| local | _tilesets |
| tilesets More... | |
| Vector< TMXObjectGroup * > | _objectGroups |
| ObjectGroups. More... | |
| var | _objectGroups |
| ObjectGroups. More... | |
| local | _objectGroups |
| ObjectGroups. More... | |
| int | _parentElement |
| parent element More... | |
| int | _parentGID |
| parent GID More... | |
| int | _layerAttribs |
| layer attribs More... | |
| var | _layerAttribs |
| layer attribs More... | |
| local | _layerAttribs |
| layer attribs More... | |
| bool | _storingCharacters |
| is storing characters? More... | |
| local | _storingCharacters |
| is storing characters? More... | |
| ValueMap | _properties |
| properties More... | |
| int | _xmlTileIndex |
| xml format tile index More... | |
| var | _xmlTileIndex |
| xml format tile index More... | |
| local | _xmlTileIndex |
| xml format tile index More... | |
| std::string | _TMXFileName |
| tmx filename More... | |
| std::string | _resources |
| std::string | _currentString |
| current string More... | |
| var | _currentString |
| current string More... | |
| local | _currentString |
| current string More... | |
| ValueMapIntKey | _tileProperties |
| tile properties More... | |
| var | _tileProperties |
| tile properties More... | |
| local | _tileProperties |
| tile properties More... | |
| int | _currentFirstGID |
| bool | _recordFirstGID |
Protected Attributes inherited from Ref | |
| unsigned int | _referenceCount |
| count of references More... | |
TMXMapInfo contains the information about the map like:
And it also contains:
This information is obtained from the TMX file.
| TMXMapInfo | ( | ) |
| var ctor | ( | ) |
| local TMXMapInfo | ( | ) |
|
virtual |
|
static |
creates a TMX Format with a tmx file
|
static |
creates a TMX Format with a tmx file
|
static |
creates a TMX Format with a tmx file
|
static |
creates a TMX Format with an XML string and a TMX resource path
|
static |
creates a TMX Format with an XML string and a TMX resource path
|
static |
creates a TMX Format with an XML string and a TMX resource path
|
virtual |
Implements SAXDelegator.
|
inlinestatic |
creates a TMX Format with a tmx file
|
inlinestatic |
creates a TMX Format with a tmx file
|
inlinestatic |
creates a TMX Format with a tmx file
|
inlinestatic |
creates a TMX Format with an XML string and a TMX resource path
|
inlinestatic |
creates a TMX Format with an XML string and a TMX resource path
|
inlinestatic |
creates a TMX Format with an XML string and a TMX resource path
|
inline |
|
inline |
|
inline |
|
inline |
layer attribs
|
inline |
layer attribs
|
inline |
layer attribs
|
inline |
Layers.
|
inline |
Layers.
|
inline |
Layers.
|
inline |
|
inline |
|
inline |
|
inline |
map width & height
|
inline |
map width & height
|
inline |
map width & height
|
inline |
ObjectGroups.
|
inline |
ObjectGroups.
|
inline |
ObjectGroups.
|
inline |
|
inline |
|
inline |
|
inline |
map orientation
|
inline |
map orientation
|
inline |
map orientation
|
inline |
parent element
|
inline |
parent element
|
inline |
parent element
|
inline |
parent GID
|
inline |
parent GID
|
inline |
parent GID
|
inline |
properties
|
inline |
properties
|
inline |
properties
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
tilesets
|
inline |
tilesets
|
inline |
tilesets
|
inline |
|
inline |
|
inline |
|
inline |
tiles width & height
|
inline |
tiles width & height
|
inline |
tiles width & height
|
inline |
|
inline |
|
inline |
| bool initWithTMXFile | ( | const std::string & | tmxFile) |
initializes a TMX format with a tmx file
| var initWithTMXFile | ( | var | tmxFile) |
initializes a TMX format with a tmx file
| local initWithTMXFile | ( | local | tmxFile) |
initializes a TMX format with a tmx file
| bool initWithXML | ( | const std::string & | tmxString, |
| const std::string & | resourcePath | ||
| ) |
initializes a TMX format with an XML string and a TMX resource path
| var initWithXML | ( | var | tmxString, |
| var | resourcePath | ||
| ) |
initializes a TMX format with an XML string and a TMX resource path
| local initWithXML | ( | local | tmxString, |
| local | resourcePath | ||
| ) |
initializes a TMX format with an XML string and a TMX resource path
|
protected |
|
protected |
|
protected |
|
inline |
is storing characters?
|
inline |
is storing characters?
|
inline |
is storing characters?
| bool parseXMLFile | ( | const std::string & | xmlFilename) |
initializes parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file
| var parseXMLFile | ( | var | xmlFilename) |
initializes parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file
| local parseXMLFile | ( | local | xmlFilename) |
initializes parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file
| bool parseXMLString | ( | const std::string & | xmlString) |
| var parseXMLString | ( | var | xmlString) |
| local parseXMLString | ( | local | xmlString) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Implements SAXDelegator.
|
virtual |
Implements SAXDelegator.
|
protected |
|
protected |
|
protected |
|
protected |
current string
|
protected |
current string
|
protected |
current string
|
protected |
layer attribs
|
protected |
layer attribs
|
protected |
layer attribs
|
protected |
Layers.
|
protected |
Layers.
|
protected |
Layers.
|
protected |
map width & height
|
protected |
map width & height
|
protected |
map width & height
|
protected |
ObjectGroups.
|
protected |
ObjectGroups.
|
protected |
ObjectGroups.
|
protected |
map orientation
|
protected |
map orientation
|
protected |
map orientation
|
protected |
parent element
|
protected |
parent element
|
protected |
parent element
|
protected |
parent GID
|
protected |
parent GID
|
protected |
parent GID
|
protected |
properties
|
protected |
properties
|
protected |
properties
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
is storing characters?
|
protected |
is storing characters?
|
protected |
is storing characters?
|
protected |
tile properties
|
protected |
tile properties
|
protected |
tile properties
|
protected |
tilesets
|
protected |
tilesets
|
protected |
tilesets
|
protected |
tiles width & height
|
protected |
tiles width & height
|
protected |
tiles width & height
|
protected |
tmx filename
|
protected |
tmx filename
|
protected |
tmx filename
|
protected |
xml format tile index
|
protected |
xml format tile index
|
protected |
xml format tile index