cocos2d-x  2.2.3-gd2.113-rev1ec524e
Loading...
Searching...
No Matches
CCTMXLayerInfo Class Reference

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

#include <CCTMXXMLParser.h>

Inheritance diagram for CCTMXLayerInfo:
[legend]
Collaboration diagram for CCTMXLayerInfo:
[legend]

Public Member Functions

virtual CCDictionarygetProperties (void)
 
virtual void setProperties (CCDictionary *var)
 
 CCTMXLayerInfo ()
 
virtual ~CCTMXLayerInfo ()
 
- Public Member Functions inherited from CCObject
 CCObject (void)
 
virtual ~CCObject (void)
 NA. More...
 
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)
 
 CCObject (const CCObject &)
 
CCObjectoperator= (const CCObject &)
 
virtual void encodeWithCoder (DS_Dictionary *)
 
virtual bool canEncode ()
 
CCObjectType getObjType () const
 
virtual int getTag () const
 
virtual void setTag (int nTag)
 
void setObjType (CCObjectType)
 
- 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

CCDictionarym_pProperties
 
- Protected Attributes inherited from CCObject
unsigned int m_uReference
 
unsigned int m_uAutoReleaseCount
 
int m_nTag
 
int m_eObjType
 
unsigned int m_uObjectIdxInArray
 

Additional Inherited Members

- Static Public Member Functions inherited from CCObject
static CCObjectcreateWithCoder (DS_Dictionary *)
 

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

◆ CCTMXLayerInfo()

◆ ~CCTMXLayerInfo()

virtual ~CCTMXLayerInfo ( )
virtual

Member Function Documentation

◆ getProperties()

virtual CCDictionary * getProperties ( void  )
virtual

◆ setProperties()

virtual void setProperties ( CCDictionary var)
virtual

Member Data Documentation

◆ m_bOwnTiles

bool m_bOwnTiles

◆ m_bVisible

bool m_bVisible

◆ m_cOpacity

unsigned char m_cOpacity

◆ m_pProperties

CCDictionary* m_pProperties
protected

◆ m_pTiles

unsigned int* m_pTiles

◆ m_sName

std::string m_sName

◆ m_tLayerSize

CCSize m_tLayerSize

◆ m_tOffset

CCPoint m_tOffset

◆ m_uMaxGID

unsigned int m_uMaxGID

◆ m_uMinGID

unsigned int m_uMinGID

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