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... | |
| bool | initWithXML (const std::string &tmxString, const std::string &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) |
| local | parseXMLString ( local 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... | |
| var | getMapSize () |
| 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) |
| Array * | getLayers () const |
| Layers. More... | |
| void | setLayers (Array *layers) |
| Array * | getTilesets () const |
| tilesets More... | |
| local | getTilesets () |
| tilesets More... | |
| void | setTilesets (Array *tilesets) |
| Array * | getObjectGroups () const |
| ObjectGroups. More... | |
| void | setObjectGroups (Array *groups) |
| int | getParentElement () const |
| parent element More... | |
| var | getParentElement () |
| parent element More... | |
| local | getParentElement () |
| 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 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 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) |
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... | |
| var | create ( var 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... | |
| 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 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... | |
| Array * | _layers |
| Layers. More... | |
| var | _layers |
| Layers. More... | |
| local | _layers |
| Layers. More... | |
| Array * | _tilesets |
| tilesets More... | |
| var | _tilesets |
| tilesets More... | |
| local | _tilesets |
| tilesets More... | |
| Array * | _objectGroups |
| ObjectGroups. More... | |
| var | _objectGroups |
| ObjectGroups. More... | |
| local | _objectGroups |
| ObjectGroups. More... | |
| int | _parentElement |
| parent element More... | |
| unsigned int | _parentGID |
| parent GID More... | |
| var | _parentGID |
| parent GID More... | |
| local | _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... | |
| Dictionary * | _properties |
| properties 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... | |
| Dictionary * | _tileProperties |
| tile properties More... | |
| var | _tileProperties |
| tile properties More... | |
| local | _tileProperties |
| tile properties More... | |
| unsigned int | _currentFirstGID |
Protected Attributes inherited from Object | |
| unsigned int | _reference |
| count of references More... | |
| unsigned int | _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 | ( | ) |
| 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 |
map width & height
|
inline |
map width & height
|
inline |
map width & height
|
inline |
ObjectGroups.
|
inline |
ObjectGroups.
|
inline |
ObjectGroups.
|
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 |
tilesets
|
inline |
tilesets
|
inline |
tilesets
|
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 |
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