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

CCTMXLayerInfo contains the information about the layers like: More...

#include <CCTMXXMLParser.h>

Inheritance diagram for CCTMXLayerInfo:
CCObject CCCopying

Public Member Functions

virtual CCDictionarygetProperties (void)
 getProperties More...
virtual void setProperties (CCDictionary *var)
 setProperties More...
 CCTMXLayerInfo ()
virtual ~CCTMXLayerInfo ()
- 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
CCSize m_tLayerSize
unsigned int * m_pTiles
bool m_bVisible
unsigned char m_cOpacity
bool m_bOwnTiles
unsigned int m_uMinGID
unsigned int m_uMaxGID
CCPoint m_tOffset
- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID

Protected Attributes

- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Detailed Description

CCTMXLayerInfo contains the information about the layers like:

  • Layer name
  • Layer size
  • Layer opacity at creation time (it can be modified at runtime)
  • Whether the layer is visible (if it's not visible, then the CocosNode won't be created)

This information is obtained from the TMX file.

Constructor & Destructor Documentation

virtual ~CCTMXLayerInfo ( )

Member Function Documentation

virtual CCDictionary* getProperties ( void  )


virtual void setProperties ( CCDictionary var)


Member Data Documentation

bool m_bOwnTiles
bool m_bVisible
unsigned char m_cOpacity
CCDictionary* m_pProperties
unsigned int* m_pTiles
std::string m_sName
CCSize m_tLayerSize
CCPoint m_tOffset
unsigned int m_uMaxGID
unsigned int m_uMinGID

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