TMXMapInfo contains the information about the map like: More...
#include <CCTMXXMLParser.h>
Public Member Functions | |
| TMXMapInfo () | |
| virtual | ~TMXMapInfo () |
| bool | initWithTMXFile (const char *tmxFile) |
| initializes a TMX format with a tmx file More... | |
| bool | initWithXML (const char *tmxString, const char *resourcePath) |
| initializes a TMX format with an XML string and a TMX resource path More... | |
| bool | parseXMLFile (const char *xmlFilename) |
| initializes parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file More... | |
| bool | parseXMLString (const char *xmlString) |
| Dictionary * | getTileProperties () |
| void | setTileProperties (Dictionary *tileProperties) |
| int | getOrientation () const |
| map orientation More... | |
| void | setOrientation (int orientation) |
| const Size & | getMapSize () const |
| map width & height More... | |
| void | setMapSize (const Size &mapSize) |
| const Size & | getTileSize () const |
| tiles width & height More... | |
| void | setTileSize (const Size &tileSize) |
| Array * | getLayers () const |
| Layers. More... | |
| void | setLayers (Array *layers) |
| Array * | getTilesets () const |
| tilesets More... | |
| void | setTilesets (Array *tilesets) |
| Array * | getObjectGroups () const |
| ObjectGroups. More... | |
| void | setObjectGroups (Array *groups) |
| int | getParentElement () const |
| parent element More... | |
| void | setParentElement (int element) |
| unsigned int | getParentGID () const |
| parent GID More... | |
| void | setParentGID (unsigned 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) |
| Dictionary * | getProperties () const |
| properties More... | |
| void | setProperties (Dictionary *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 char * | getCurrentString () |
| void | setCurrentString (const char *currentString) |
| const char * | getTMXFileName () |
| void | setTMXFileName (const char *fileName) |
Public Member Functions inherited from Object | |
| Object () | |
| Constructor. More... | |
| virtual | ~Object () |
| void | release () |
| Release the ownership immediately. More... | |
| void | retain () |
| Retains the ownership. More... | |
| Object * | autorelease () |
| Release the ownership sometime soon automatically. More... | |
| bool | isSingleReference () const |
| Returns a boolean value that indicates whether there is only one reference to the object. More... | |
| unsigned int | retainCount () const |
| Returns the object's current reference count. More... | |
| virtual bool | isEqual (const Object *object) |
| Returns a boolean value that indicates whether this object and a given object are equal. More... | |
| virtual void | acceptVisitor (DataVisitor &visitor) |
| virtual void | update (float dt) |
Static Public Member Functions | |
| static TMXMapInfo * | create (const char *tmxFile) |
| creates a TMX Format with a tmx file More... | |
| static TMXMapInfo * | createWithXML (const char *tmxString, const char *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... | |
| 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 Attributes | |
| int | _orientation |
| map orientation More... | |
| Size | _mapSize |
| map width & height More... | |
| Size | _tileSize |
| tiles width & height More... | |
| Array * | _layers |
| Layers. More... | |
| Array * | _tilesets |
| tilesets More... | |
| Array * | _objectGroups |
| ObjectGroups. More... | |
| int | _parentElement |
| parent element More... | |
| unsigned int | _parentGID |
| parent GID More... | |
| int | _layerAttribs |
| layer attribs More... | |
| bool | _storingCharacters |
| is storing characters? More... | |
| Dictionary * | _properties |
| properties More... | |
| std::string | _TMXFileName |
| tmx filename More... | |
| std::string | _resources |
| std::string | _currentString |
| current string More... | |
| Dictionary * | _tileProperties |
| tile properties More... | |
| unsigned int | _currentFirstGID |
Protected Attributes inherited from Object | |
| unsigned int | _reference |
| count of references More... | |
| var | _reference |
| count of references More... | |
| local | _reference |
| count of references More... | |
| unsigned int | _autoReleaseCount |
| count of autorelease More... | |
| var | _autoReleaseCount |
| count of autorelease More... | |
| local | _autoReleaseCount |
| count of autorelease More... | |
Additional Inherited Members | |
Public Attributes inherited from Object | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID More... | |
| int | _luaID |
| Lua reference id. More... | |
TMXMapInfo contains the information about the map like:
And it also contains:
This information is obtained from the TMX file.
| TMXMapInfo | ( | ) |
|
virtual |
|
static |
creates a TMX Format with a tmx file
|
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 an XML string and a TMX resource path
|
inline |
|
inline |
layer attribs
|
inline |
Layers.
|
inline |
map width & height
|
inline |
ObjectGroups.
|
inline |
map orientation
|
inline |
parent element
|
inline |
parent GID
|
inline |
properties
|
inline |
|
inline |
|
inline |
tilesets
|
inline |
tiles width & height
|
inline |
| bool initWithTMXFile | ( | const char * | tmxFile) |
initializes a TMX format with a tmx file
| bool initWithXML | ( | const char * | tmxString, |
| const char * | resourcePath | ||
| ) |
initializes a TMX format with an XML string and a TMX resource path
|
inline |
is storing characters?
| bool parseXMLFile | ( | const char * | xmlFilename) |
initializes parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file
| bool parseXMLString | ( | const char * | xmlString) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Implements SAXDelegator.
|
virtual |
Implements SAXDelegator.
|
protected |
|
protected |
current string
|
protected |
layer attribs
|
protected |
Layers.
|
protected |
map width & height
|
protected |
ObjectGroups.
|
protected |
map orientation
|
protected |
parent element
|
protected |
parent GID
|
protected |
properties
|
protected |
|
protected |
is storing characters?
|
protected |
tile properties
|
protected |
tilesets
|
protected |
tiles width & height
|
protected |
tmx filename