CCTMXMapInfo contains the information about the map like: More...
#include <CCTMXXMLParser.h>
Public Member Functions | |
virtual const CCSize & | getMapSize (void) |
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... | |
virtual CCArray * | getLayers (void) |
getLayers More... | |
virtual void | setLayers (CCArray *var) |
setLayers More... | |
virtual CCArray * | getTilesets (void) |
getTilesets More... | |
virtual void | setTilesets (CCArray *var) |
setTilesets More... | |
virtual CCArray * | getObjectGroups (void) |
getObjectGroups More... | |
virtual void | setObjectGroups (CCArray *var) |
setObjectGroups More... | |
virtual CCDictionary * | getProperties (void) |
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 () |
void | setCurrentString (const char *currentString) |
const char * | getTMXFileName () |
void | setTMXFileName (const char *fileName) |
![]() | |
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) |
![]() | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
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... | |
Public Attributes | |
virtual int | getOrientation (void)\n\n public |
getOrientation More... | |
virtual int | getParentElement (void)\n\n public |
getParentElement More... | |
virtual unsigned int | getParentGID (void)\n\n public |
getParentGID More... | |
virtual int | getLayerAttribs (void)\n\n public |
getLayerAttribs More... | |
virtual bool | getStoringCharacters (void)\n\n public |
getStoringCharacters More... | |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
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 |
![]() | |
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 | ( | ) |
|
virtual |
|
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 |
implement pure virtual methods of CCSAXDelegator
Implements CCSAXDelegator.
|
virtual |
Implements CCSAXDelegator.
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 |
|
protected |
parent GID