|
cocos2d-x
2.2.3-gd2.113-rev1ec524e
|
CCTMXMapInfo contains the information about the map like: More...
#include <CCTMXXMLParser.h>
Public Member Functions | |
| virtual int | getOrientation (void) |
| virtual void | setOrientation (int var) |
| virtual const CCSize & | getMapSize (void) |
| virtual void | setMapSize (const CCSize &var) |
| virtual const CCSize & | getTileSize (void) |
| virtual void | setTileSize (const CCSize &var) |
| virtual CCArray * | getLayers (void) |
| virtual void | setLayers (CCArray *var) |
| virtual CCArray * | getTilesets (void) |
| virtual void | setTilesets (CCArray *var) |
| virtual CCArray * | getObjectGroups (void) |
| virtual void | setObjectGroups (CCArray *var) |
| virtual int | getParentElement (void) |
| virtual void | setParentElement (int var) |
| virtual unsigned int | getParentGID (void) |
| virtual void | setParentGID (unsigned int var) |
| virtual int | getLayerAttribs (void) |
| virtual void | setLayerAttribs (int var) |
| virtual bool | getStoringCharacters (void) |
| virtual void | setStoringCharacters (bool var) |
| virtual CCDictionary * | getProperties (void) |
| virtual void | setProperties (CCDictionary *var) |
| CCTMXMapInfo () | |
| ctor NA More... | |
| virtual | ~CCTMXMapInfo () |
| NA NA. More... | |
| bool | initWithTMXFile (const char *tmxFile) |
| initializes a TMX format with a tmx file NA More... | |
| bool | initWithXML (const char *tmxString, const char *resourcePath) |
| initializes a TMX format with an XML string and a TMX resource path NA 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 NA More... | |
| void | endElement (void *ctx, const char *name) |
| NA. More... | |
| void | textHandler (void *ctx, const char *ch, int len) |
| NA. More... | |
| 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) |
| NA. More... | |
| 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) |
| CCObject (const CCObject &) | |
| CCObject & | operator= (const CCObject &) |
| virtual void | encodeWithCoder (DS_Dictionary *) |
| virtual bool | canEncode () |
| CCObjectType | getObjType () const |
| virtual int | getTag () const |
| virtual void | setTag (int nTag) |
| void | setObjType (CCObjectType) |
Public Member Functions inherited from CCCopying | |
| virtual CCObject * | copyWithZone (CCZone *pZone) |
| virtual void | startElement (void *ctx, const char *name, const char **atts)=0 |
| virtual void | endElement (void *ctx, const char *name)=0 |
| virtual void | textHandler (void *ctx, const char *s, int len)=0 |
Static Public Member Functions | |
| static CCTMXMapInfo * | formatWithTMXFile (const char *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... | |
Static Public Member Functions inherited from CCObject | |
| static CCObject * | createWithCoder (DS_Dictionary *) |
Protected Attributes | |
| int | m_nOrientation |
| map orientation More... | |
| CCSize | 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... | |
| CCDictionary * | m_pTileProperties |
| tile properties More... | |
| unsigned int | m_uCurrentFirstGID |
Protected Attributes inherited from CCObject | |
| unsigned int | m_uReference |
| unsigned int | m_uAutoReleaseCount |
| int | m_nTag |
| int | m_eObjType |
| unsigned int | m_uObjectIdxInArray |
Additional Inherited Members | |
Public Attributes inherited from CCObject | |
| unsigned int | m_uID |
| int | m_nLuaID |
CCTMXMapInfo contains the information about the map like:
And it also contains:
This information is obtained from the TMX file.
| CCTMXMapInfo | ( | ) |
ctor NA
|
virtual |
NA NA.
|
virtual |
NA.
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 |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| CCDictionary * getTileProperties | ( | ) |
|
virtual |
|
virtual |
|
inline |
| bool initWithTMXFile | ( | const char * | tmxFile | ) |
initializes a TMX format with a tmx file NA
| bool initWithXML | ( | const char * | tmxString, |
| const char * | resourcePath | ||
| ) |
initializes a TMX format with an XML string and a TMX resource path NA
| 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 |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void setTileProperties | ( | CCDictionary * | tileProperties | ) |
|
virtual |
|
virtual |
|
inline |
|
virtual |
implement pure virtual methods of CCSAXDelegator NA
Implements CCSAXDelegator.
|
virtual |
NA.
Implements CCSAXDelegator.
|
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 |
|
protected |
parent GID