CCTMXMapInfo contains the information about the map like: More...
#include <CCTMXXMLParser.h>
Public Member Functions | |
| virtual const CCSize & | getMapSize (void) |
| getMapSize More... | |
| local | getMapSize () |
| getMapSize More... | |
| virtual void | setMapSize (const CCSize &var) |
| set# MapSize More... | |
| virtual const CCSize & | getTileSize (void) |
| getTileSize More... | |
| virtual void | setTileSize (const CCSize &var) |
| set# TileSize More... | |
| local | setTileSize ( local var) |
| set# TileSize More... | |
| virtual CCArray * | getLayers (void) |
| getLayers More... | |
| local | getLayers () |
| getLayers More... | |
| virtual void | setLayers (CCArray *var) |
| setLayers More... | |
| virtual CCArray * | getTilesets (void) |
| getTilesets More... | |
| var | getTilesets () |
| getTilesets More... | |
| virtual void | setTilesets (CCArray *var) |
| setTilesets More... | |
| virtual CCArray * | getObjectGroups (void) |
| getObjectGroups More... | |
| local | getObjectGroups () |
| getObjectGroups More... | |
| virtual void | setObjectGroups (CCArray *var) |
| setObjectGroups More... | |
| virtual CCDictionary * | getProperties (void) |
| getProperties More... | |
| var | getProperties () |
| getProperties More... | |
| local | getProperties () |
| getProperties More... | |
| virtual void | setProperties (CCDictionary *var) |
| setProperties More... | |
| CCTMXMapInfo () | |
| virtual | ~CCTMXMapInfo () |
| 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) |
| CCDictionary * | getTileProperties () |
| void | setTileProperties (CCDictionary *tileProperties) |
| void | startElement (void *ctx, const char *name, const char **atts) |
| implement pure virtual methods of CCSAXDelegator More... | |
| void | endElement (void *ctx, const char *name) |
| void | textHandler (void *ctx, const char *ch, int len) |
| const char * | getCurrentString () |
| var | getCurrentString () |
| local | getCurrentString () |
| void | setCurrentString (const char *currentString) |
| const char * | getTMXFileName () |
| void | setTMXFileName (const char *fileName) |
Public Member Functions inherited from CCObject | |
| CCObject (void) | |
| virtual | ~CCObject (void) |
| void | release (void) |
| void | retain (void) |
| CCObject * | autorelease (void) |
| CCObject * | copy (void) |
| bool | isSingleReference (void) const |
| unsigned int | retainCount (void) const |
| virtual bool | isEqual (const CCObject *pObject) |
| virtual void | acceptVisitor (CCDataVisitor &visitor) |
| virtual void | update (float dt) |
Public Member Functions inherited from CCCopying | |
| virtual CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
| static CCTMXMapInfo * | formatWithTMXFile (const char *tmxFile) |
| creates a TMX Format with a tmx file More... | |
| var | formatWithTMXFile ( var tmxFile) |
| creates a TMX Format with a tmx file More... | |
| local | formatWithTMXFile ( local tmxFile) |
| creates a TMX Format with a tmx file More... | |
| static CCTMXMapInfo * | formatWithXML (const char *tmxString, const char *resourcePath) |
| creates a TMX Format with an XML string and a TMX resource path More... | |
| var | formatWithXML ( var tmxString, var resourcePath) |
| creates a TMX Format with an XML string and a TMX resource path More... | |
| local | formatWithXML ( local tmxString, local resourcePath) |
| creates a TMX Format with an XML string and a TMX resource path More... | |
Public Attributes | |
| virtual int | getOrientation (void)\n\n public |
| getOrientation More... | |
| local | getOrientation () |
| getOrientation More... | |
| virtual int | getParentElement (void)\n\n public |
| getParentElement More... | |
| local | getParentElement () |
| getParentElement More... | |
| virtual unsigned int | getParentGID (void)\n\n public |
| getParentGID More... | |
| var | getParentGID () |
| getParentGID More... | |
| local | getParentGID () |
| getParentGID More... | |
| virtual int | getLayerAttribs (void)\n\n public |
| getLayerAttribs More... | |
| local | getLayerAttribs () |
| getLayerAttribs More... | |
| virtual bool | getStoringCharacters (void)\n\n public |
| getStoringCharacters More... | |
| var | getStoringCharacters () |
| getStoringCharacters More... | |
| local | getStoringCharacters () |
| getStoringCharacters More... | |
Public Attributes inherited from CCObject | |
| unsigned int | m_uID |
| int | m_nLuaID |
Protected Attributes | |
| int | m_nOrientation |
| map orientation More... | |
| CCSize | m_tMapSize |
| map width & height More... | |
| var | m_tMapSize |
| map width & height More... | |
| local | m_tMapSize |
| map width & height More... | |
| CCSize | m_tTileSize |
| tiles width & height More... | |
| CCArray * | m_pLayers |
| Layers. More... | |
| CCArray * | m_pTilesets |
| tilesets More... | |
| CCArray * | m_pObjectGroups |
| ObjectGroups. More... | |
| int | m_nParentElement |
| parent element More... | |
| unsigned int | m_uParentGID |
| parent GID More... | |
| int | m_nLayerAttribs |
| layer attribs More... | |
| bool | m_bStoringCharacters |
| is storing characters? More... | |
| CCDictionary * | m_pProperties |
| properties More... | |
| std::string | m_sTMXFileName |
| tmx filename More... | |
| std::string | m_sResources |
| std::string | m_sCurrentString |
| current string More... | |
| var | m_sCurrentString |
| current string More... | |
| local | m_sCurrentString |
| current string More... | |
| CCDictionary * | m_pTileProperties |
| tile properties More... | |
| var | m_pTileProperties |
| tile properties More... | |
| local | m_pTileProperties |
| tile properties More... | |
| unsigned int | m_uCurrentFirstGID |
Protected Attributes inherited from CCObject | |
| unsigned int | m_uReference |
| unsigned int | m_uAutoReleaseCount |
CCTMXMapInfo contains the information about the map like:
And it also contains:
This information is obtained from the TMX file.
| CCTMXMapInfo | ( | ) |
| var ctor | ( | ) |
|
virtual |
|
virtual |
Implements CCSAXDelegator.
|
virtual |
Implements CCSAXDelegator.
|
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
|
inline |
|
inline |
|
inline |
|
virtual |
getLayers
|
virtual |
getLayers
|
virtual |
getLayers
|
virtual |
getMapSize
|
virtual |
getMapSize
|
virtual |
getMapSize
|
virtual |
getObjectGroups
|
virtual |
getObjectGroups
|
virtual |
getObjectGroups
|
virtual |
getProperties
|
virtual |
getProperties
|
virtual |
getProperties
| CCDictionary* getTileProperties | ( | ) |
| var getTileProperties | ( | ) |
| local getTileProperties | ( | ) |
|
virtual |
getTilesets
|
virtual |
getTilesets
|
virtual |
getTilesets
|
virtual |
getTileSize
|
virtual |
getTileSize
|
virtual |
getTileSize
|
inline |
|
inline |
|
inline |
| bool initWithTMXFile | ( | const char * | tmxFile) |
initializes a TMX format with a tmx file
| var initWithTMXFile | ( | var | 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
| var initWithXML | ( | var | tmxString, |
| var | resourcePath | ||
| ) |
initializes a TMX format with an XML string and a TMX resource path
| bool parseXMLFile | ( | const char * | 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 char * | xmlString) |
| var parseXMLString | ( | var | xmlString) |
| local parseXMLString | ( | local | xmlString) |
|
inline |
|
inline |
|
inline |
|
virtual |
setLayers
|
virtual |
setLayers
|
virtual |
setLayers
|
virtual |
set# MapSize
|
virtual |
set# MapSize
|
virtual |
set# MapSize
|
virtual |
setObjectGroups
|
virtual |
setObjectGroups
|
virtual |
setObjectGroups
|
virtual |
setProperties
|
virtual |
setProperties
|
virtual |
setProperties
| void setTileProperties | ( | CCDictionary * | tileProperties) |
| var setTileProperties | ( | var | tileProperties) |
| local setTileProperties | ( | local | tileProperties) |
|
virtual |
setTilesets
|
virtual |
setTilesets
|
virtual |
setTilesets
|
virtual |
set# TileSize
|
virtual |
set# TileSize
|
virtual |
set# TileSize
|
inline |
|
inline |
|
inline |
|
virtual |
implement pure virtual methods of CCSAXDelegator
Implements CCSAXDelegator.
|
virtual |
implement pure virtual methods of CCSAXDelegator
Implements CCSAXDelegator.
|
virtual |
Implements CCSAXDelegator.
|
virtual |
Implements CCSAXDelegator.
| virtual int getLayerAttribs(void)\n\n public |
getLayerAttribs
setLayerAttribs
| var public |
getLayerAttribs
setLayerAttribs
| local public |
getLayerAttribs
setLayerAttribs
| virtual int getOrientation(void)\n\n public |
getOrientation
setOrientation
| var public |
getOrientation
setOrientation
| local public |
getOrientation
setOrientation
| virtual int getParentElement(void)\n\n public |
getParentElement
setParentElement
| var public |
getParentElement
setParentElement
| local public |
getParentElement
setParentElement
| virtual unsigned int getParentGID(void)\n\n public |
getParentGID
setParentGID
| var public |
getParentGID
setParentGID
| local public |
getParentGID
setParentGID
| virtual bool getStoringCharacters(void)\n\n public |
getStoringCharacters
setStoringCharacters
| var public |
getStoringCharacters
setStoringCharacters
| local public |
getStoringCharacters
setStoringCharacters
|
protected |
is storing characters?
|
protected |
is storing characters?
|
protected |
is storing characters?
|
protected |
layer attribs
|
protected |
layer attribs
|
protected |
layer attribs
|
protected |
map orientation
|
protected |
map orientation
|
protected |
map orientation
|
protected |
parent element
|
protected |
parent element
|
protected |
parent element
|
protected |
Layers.
|
protected |
Layers.
|
protected |
Layers.
|
protected |
ObjectGroups.
|
protected |
ObjectGroups.
|
protected |
ObjectGroups.
|
protected |
properties
|
protected |
properties
|
protected |
properties
|
protected |
tile properties
|
protected |
tile properties
|
protected |
tile properties
|
protected |
tilesets
|
protected |
tilesets
|
protected |
tilesets
|
protected |
current string
|
protected |
current string
|
protected |
current string
|
protected |
|
protected |
|
protected |
|
protected |
tmx filename
|
protected |
tmx filename
|
protected |
tmx filename
|
protected |
map width & height
|
protected |
map width & height
|
protected |
map width & height
|
protected |
tiles width & height
|
protected |
tiles width & height
|
protected |
tiles width & height
|
protected |
|
protected |
|
protected |
|
protected |
parent GID
|
protected |
parent GID
|
protected |
parent GID