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

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

#include <CCTMXXMLParser.h>

Inheritance diagram for TMXLayerInfo:

Public Member Functions

 TMXLayerInfo ()
virtual ~TMXLayerInfo ()
void setProperties (ValueMap properties)
ValueMapgetProperties ()
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
void release ()
 Releases the ownership immediately. More...
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
virtual ~Ref ()

Public Attributes

ValueMap _properties
std::string _name
Size _layerSize
bool _visible
unsigned char _opacity
bool _ownTiles
Vec2 _offset

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...

Detailed Description

TMXLayerInfo 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 ~TMXLayerInfo ( )

Member Function Documentation

ValueMap& getProperties ( )
void setProperties ( ValueMap  properties)

Member Data Documentation

Size _layerSize
std::string _name
Vec2 _offset
unsigned char _opacity
bool _ownTiles
ValueMap _properties
uint32_t* _tiles
bool _visible

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