CCTMXLayer
CCTMXLayer
Cocos2DInheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCSpriteBatchNode
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCTextureProtocol, Cocos2D.ICCBlendProtocol
Constructors
CCTMXLayer(CCTMXTilesetInfo, CCTMXLayerInfo, CCTMXMapInfo)
CCTMXLayer(CCTMXTilesetInfo, CCTMXLayerInfo, CCTMXMapInfo)(Cocos2D.CCTMXTilesetInfo tilesetInfo, Cocos2D.CCTMXLayerInfo layerInfo, Cocos2D.CCTMXMapInfo mapInfo)Parameters:
tilesetInfo (Cocos2D.CCTMXTilesetInfo)layerInfo (Cocos2D.CCTMXLayerInfo)mapInfo (Cocos2D.CCTMXMapInfo)Example
Fields
m_bUseAutomaticVertexZ(System.Boolean)
m_cOpacity(System.Byte)
m_fAlphaFuncValue(System.Single)
m_fContentScaleFactor(System.Single)
m_nVertexZvalue(System.Int32)
m_pAtlasIndexArray(System.Collections.Generic.ListSystem.Int32)
m_pReusedTile(Cocos2D.CCSprite)
m_sLayerName(System.String)
m_uMaxGID(System.UInt32)
m_uMinGID(System.UInt32)
Properties
LayerName(System.String)
LayerOrientation(Cocos2D.CCTMXOrientation)
LayerSize(Cocos2D.CCSize)
MapTileSize(Cocos2D.CCSize)
Properties(System.Collections.Generic.DictionarySystem.String,System.String)
TileSet(Cocos2D.CCTMXTilesetInfo)
Tiles(System.UInt32[])
Methods
AddChild(CCNode, int, int)
AddChild(CCNode, int, int)(Cocos2D.CCNode child, System.Int32 zOrder, System.Int32 tag)Parameters:
child (Cocos2D.CCNode)zOrder (System.Int32)tag (System.Int32)Example
Draw()
Draw()()This is called from the Visit() method. This is where you DRAW your node. Only draw stuff from this method call.
Example
InitWithTilesetInfo(CCTMXTilesetInfo, CCTMXLayerInfo, CCTMXMapInfo)
System.Boolean InitWithTilesetInfo(CCTMXTilesetInfo, CCTMXLayerInfo, CCTMXMapInfo)(Cocos2D.CCTMXTilesetInfo tilesetInfo, Cocos2D.CCTMXLayerInfo layerInfo, Cocos2D.CCTMXMapInfo mapInfo)Parameters:
tilesetInfo (Cocos2D.CCTMXTilesetInfo)layerInfo (Cocos2D.CCTMXLayerInfo)mapInfo (Cocos2D.CCTMXMapInfo)Returns:
System.BooleanExample
PositionAt(CCPoint)
Cocos2D.CCPoint PositionAt(CCPoint)(Cocos2D.CCPoint pos)Parameters:
pos (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointExample
PropertyNamed(string)
System.String PropertyNamed(string)(System.String propertyName)Parameters:
propertyName (System.String)Returns:
System.StringExample
ReleaseMap()
ReleaseMap()()Example
RemoveChild(CCNode, bool)
RemoveChild(CCNode, bool)(Cocos2D.CCNode node, System.Boolean cleanup)Parameters:
node (Cocos2D.CCNode)cleanup (System.Boolean)Example
RemoveTileAt(CCPoint)
RemoveTileAt(CCPoint)(Cocos2D.CCPoint pos)Parameters:
pos (Cocos2D.CCPoint)Example
SetTileGID(uint, CCPoint)
SetTileGID(uint, CCPoint)(System.UInt32 gid, Cocos2D.CCPoint pos)Parameters:
gid (System.UInt32)pos (Cocos2D.CCPoint)Example
SetTileGID(uint, CCPoint, uint)
SetTileGID(uint, CCPoint, uint)(System.UInt32 gid, Cocos2D.CCPoint pos, System.UInt32 flags)Parameters:
gid (System.UInt32)pos (Cocos2D.CCPoint)flags (System.UInt32)Example
SetupTiles()
SetupTiles()()Example
TileAt(CCPoint)
Cocos2D.CCSprite TileAt(CCPoint)(Cocos2D.CCPoint pos)Parameters:
pos (Cocos2D.CCPoint)Returns:
Cocos2D.CCSpriteExample
TileGIDAt(CCPoint)
System.UInt32 TileGIDAt(CCPoint)(Cocos2D.CCPoint pos)Parameters:
pos (Cocos2D.CCPoint)Returns:
System.UInt32Example
TileGIDAt(CCPoint, out uint)
System.UInt32 TileGIDAt(CCPoint, out uint)(Cocos2D.CCPoint pos, System.UInt32 flags)Parameters:
pos (Cocos2D.CCPoint)flags (System.UInt32)Returns:
System.UInt32Example