enum { TMXLayerAttribNone = 1 << 0, TMXLayerAttribBase64 = 1 << 1, TMXLayerAttribGzip = 1 << 2, TMXLayerAttribZlib = 1 << 3, }; enum { TMXPropertyNone, TMXPropertyMap, TMXPropertyLayer, TMXPropertyObjectGroup, TMXPropertyObject, TMXPropertyTile }; class CCTMXLayerInfo : public CCObject { CCDictionary* getProperties(); void setProperties(CCDictionary* pval); }; class CCTMXTilesetInfo : public CCObject { CCRect rectForGID(unsigned int gid); }; class CCTMXMapInfo : public CCObject { void setOrientation(int val); int getOrientation(); void setMapSize(CCSize sz); CCSize getMapSize(); void setTileSize(CCSize sz); CCSize getTileSize(); void setLayers(CCArray* pval); CCArray* getLayers(); void setTilesets(CCArray* pval); CCArray* getTilesets(); void setObjectGroups(CCArray* val); CCArray* getObjectGroups(); void setParentElement(int val); int getParentElement(); void setParentGID(unsigned int val); unsigned int getParentGID(); void setLayerAttribs(int val); int getLayerAttribs(); void setStoringCharacters(bool val); bool getStoringCharacters(); void setProperties(CCDictionary* pval); CCDictionary* getProperties(); void setTileProperties(CCDictionary* tileProperties); CCDictionary* getTileProperties(); void setCurrentString(const char *currentString); const char* getCurrentString(); void setTMXFileName(const char *fileName); const char* getTMXFileName(); 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); bool parseXMLFile(const char *xmlFilename); static CCTMXMapInfo * formatWithTMXFile(const char *tmxFile); };