CCTMXTilesetInfo contains the information about the tilesets like: More...
#include <CCTMXXMLParser.h>
Public Member Functions | |
CCTMXTilesetInfo () | |
virtual | ~CCTMXTilesetInfo () |
CCRect | rectForGID (unsigned int gid) |
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) |
Public Attributes | |
std::string | m_sName |
unsigned int | m_uFirstGid |
CCSize | m_tTileSize |
unsigned int | m_uSpacing |
unsigned int | m_uMargin |
std::string | m_sSourceImage |
filename containing the tiles (should be spritesheet / texture atlas) More... | |
CCSize | m_tImageSize |
size in pixels of the image More... | |
Public Attributes inherited from CCObject | |
unsigned int | m_uID |
int | m_nLuaID |
Additional Inherited Members | |
Protected Attributes inherited from CCObject | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
CCTMXTilesetInfo contains the information about the tilesets like:
This information is obtained from the TMX file.
CCTMXTilesetInfo | ( | ) |
|
virtual |
CCRect rectForGID | ( | unsigned int | gid) |
std::string m_sName |
std::string m_sSourceImage |
filename containing the tiles (should be spritesheet / texture atlas)
CCSize m_tImageSize |
size in pixels of the image
CCSize m_tTileSize |
unsigned int m_uFirstGid |
unsigned int m_uMargin |
unsigned int m_uSpacing |