cocos2d-x  3.0-rc0
 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 ()
 Release the ownership immediately. More...
Refautorelease ()
 Release 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
var _name
local _name
Size _layerSize
var _layerSize
local _layerSize
var _tiles
local _tiles
bool _visible
var _visible
local _visible
unsigned char _opacity
var _opacity
local _opacity
bool _ownTiles
Point _offset
var _offset
local _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

var ctor ( )
local TMXLayerInfo ( )
virtual ~TMXLayerInfo ( )

Member Function Documentation

ValueMap& getProperties ( )
var getProperties ( )
local getProperties ( )
void setProperties ( ValueMap  properties)
var setProperties ( var  properties)
local setProperties ( local  properties)

Member Data Documentation

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

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