cocos2d-x  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCTMXTilesetInfo Class Reference

CCTMXTilesetInfo contains the information about the tilesets like: More...

#include <CCTMXXMLParser.h>

Inheritance diagram for CCTMXTilesetInfo:
CCObject CCCopying

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)
CCObjectautorelease (void)
CCObjectcopy (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 CCObjectcopyWithZone (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

Detailed Description

CCTMXTilesetInfo contains the information about the tilesets like:

  • Tileset name
  • Tileset spacing
  • Tileset margin
  • size of the tiles
  • Image used for the tiles
  • Image size

This information is obtained from the TMX file.

Constructor & Destructor Documentation

virtual ~CCTMXTilesetInfo ( )
virtual

Member Function Documentation

CCRect rectForGID ( unsigned int  gid)

Member Data Documentation

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

The documentation for this class was generated from the following file: