|
cocos2d-x
2.1.1
|
CCTMXMapInfo contains the information about the map like: More...
#include <CCTMXXMLParser.h>
Public Member Functions | |
| virtual const CCSize & | getMapSize (void) |
| getMapSize | |
| virtual void | setMapSize (const CCSize &var) |
| set# MapSize | |
| virtual const CCSize & | getTileSize (void) |
| getTileSize | |
| virtual void | setTileSize (const CCSize &var) |
| set# TileSize | |
| virtual CCArray * | getLayers (void) |
| getLayers | |
| virtual void | setLayers (CCArray *var) |
| setLayers | |
| virtual CCArray * | getTilesets (void) |
| getTilesets | |
| virtual void | setTilesets (CCArray *var) |
| setTilesets | |
| virtual CCArray * | getObjectGroups (void) |
| getObjectGroups | |
| virtual void | setObjectGroups (CCArray *var) |
| setObjectGroups | |
| virtual CCDictionary * | getProperties (void) |
| getProperties | |
| virtual void | setProperties (CCDictionary *var) |
| setProperties | |
| CCTMXMapInfo () | |
| virtual | ~CCTMXMapInfo () |
| 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 | |
| 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) |
| CCDictionary * | getTileProperties () |
| void | setTileProperties (CCDictionary *tileProperties) |
| 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 CCObject | |
| CCObject (void) | |
| virtual | ~CCObject (void) |
| void | release (void) |
| void | retain (void) |
| CCObject * | autorelease (void) |
| CCObject * | copy (void) |
| bool | isSingleReference (void) |
| unsigned int | retainCount (void) |
| virtual bool | isEqual (const CCObject *pObject) |
| 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 | |
| static CCTMXMapInfo * | formatWithXML (const char *tmxString, const char *resourcePath) |
| creates a TMX Format with an XML string and a TMX resource path | |
Public Attributes | |
| virtual int | getOrientation (void)\n\n public |
| getOrientation | |
| virtual int | getParentElement (void)\n\n public |
| getParentElement | |
| virtual unsigned int | getParentGID (void)\n\n public |
| getParentGID | |
| virtual int | getLayerAttribs (void)\n\n public |
| getLayerAttribs | |
| virtual bool | getStoringCharacters (void)\n\n public |
| getStoringCharacters | |
Public Attributes inherited from CCObject | |
| unsigned int | m_uID |
| int | m_nLuaID |
Protected Attributes | |
| int | m_nOrientation |
| map orientation | |
| CCSize | m_tMapSize |
| map width & height | |
| CCSize | m_tTileSize |
| tiles width & height | |
| CCArray * | m_pLayers |
| Layers. | |
| CCArray * | m_pTilesets |
| tilesets | |
| CCArray * | m_pObjectGroups |
| ObjectGroups. | |
| int | m_nParentElement |
| parent element | |
| unsigned int | m_uParentGID |
| parent GID | |
| int | m_nLayerAttribs |
| layer attribs | |
| bool | m_bStoringCharacters |
| is storing characters? | |
| CCDictionary * | m_pProperties |
| properties | |
| std::string | m_sTMXFileName |
| tmx filename | |
| std::string | m_sResources |
| std::string | m_sCurrentString |
| current string | |
| CCDictionary * | m_pTileProperties |
| tile properties | |
Protected Attributes inherited from CCObject | |
| unsigned int | m_uReference |
| unsigned int | m_uAutoReleaseCount |
Detailed Description
CCTMXMapInfo contains the information about the map like:
- Map orientation (hexagonal, isometric or orthogonal)
- Tile size
- Map size
And it also contains:
- Layers (an array of TMXLayerInfo objects)
- Tilesets (an array of TMXTilesetInfo objects)
- ObjectGroups (an array of TMXObjectGroupInfo objects)
This information is obtained from the TMX file.
Constructor & Destructor Documentation
| CCTMXMapInfo | ( | ) |
|
virtual |
Member Function Documentation
|
virtual |
Implements CCSAXDelegator.
|
static |
creates a TMX Format with a tmx file
|
static |
creates a TMX Format with an XML string and a TMX resource path
|
inline |
|
virtual |
getLayers
|
virtual |
getMapSize
|
virtual |
getObjectGroups
|
virtual |
getProperties
| CCDictionary* getTileProperties | ( | ) |
|
virtual |
getTilesets
|
virtual |
getTileSize
|
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
| 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 |
|
virtual |
setLayers
|
virtual |
set# MapSize
|
virtual |
setObjectGroups
|
virtual |
setProperties
| void setTileProperties | ( | CCDictionary * | tileProperties | ) |
|
virtual |
setTilesets
|
virtual |
set# TileSize
|
inline |
|
virtual |
Implements CCSAXDelegator.
|
virtual |
Implements CCSAXDelegator.
Member Data Documentation
| virtual int getLayerAttribs(void)\n\n public |
getLayerAttribs
setLayerAttribs
| virtual int getOrientation(void)\n\n public |
getOrientation
setOrientation
| virtual int getParentElement(void)\n\n public |
getParentElement
setParentElement
| virtual unsigned int getParentGID(void)\n\n public |
getParentGID
setParentGID
| virtual bool getStoringCharacters(void)\n\n public |
getStoringCharacters
setStoringCharacters
|
protected |
is storing characters?
|
protected |
layer attribs
|
protected |
map orientation
|
protected |
parent element
|
protected |
Layers.
|
protected |
ObjectGroups.
|
protected |
properties
|
protected |
tile properties
|
protected |
tilesets
|
protected |
current string
|
protected |
|
protected |
tmx filename
|
protected |
map width & height
|
protected |
tiles width & height
|
protected |
parent GID
The documentation for this class was generated from the following file:
- /Users/zhangkoumyou/SourceCode/cocos2d-x/cocos2dx/tilemap_parallax_nodes/CCTMXXMLParser.h

Public Member Functions inherited from 