Skip to main content

CCTMXTiledMap

CCTMXTiledMap

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode

Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}

Constructors

CCTMXTiledMap(CCTMXMapInfo)

CCTMXTiledMap(CCTMXMapInfo)(Cocos2D.CCTMXMapInfo mapInfo)

Constructs the Tiled map from the map information that you provide.

Parameters:
mapInfo (Cocos2D.CCTMXMapInfo)
Example

CCTMXTiledMap(StreamReader)

CCTMXTiledMap(StreamReader)(System.IO.StreamReader tmxFile)

Construct the Tiled map from the given stream containing the contents of the TMX file.

Parameters:
tmxFile (System.IO.StreamReader)
Example

CCTMXTiledMap(string)

CCTMXTiledMap(string)(System.String tmxFile)

Construct the Tiled map from the given TMX file, which is assumed to be a content managed file.

Parameters:
tmxFile (System.String)
Example

Fields

m_nMapOrientation(System.Int32)
m_pObjectGroups(System.Collections.Generic.ListCocos2D.CCTMXObjectGroup)
m_pProperties(System.Collections.Generic.DictionarySystem.String,System.String)
m_pTileProperties(System.Collections.Generic.DictionarySystem.UInt32,System.Collections.Generic.DictionarySystem.String,System.String)
m_tMapSize(Cocos2D.CCSize)
m_tTileSize(Cocos2D.CCSize)

Properties

MapInfo(Cocos2D.CCTMXMapInfo)
MapOrientation(System.Int32)

map orientation

MapSize(Cocos2D.CCSize)

the map's size property measured in tiles

ObjectGroups(System.Collections.Generic.ListCocos2D.CCTMXObjectGroup)

object groups

Properties(System.Collections.Generic.DictionarySystem.String,System.String)

properties

TileSize(Cocos2D.CCSize)

the tiles's size property measured in pixels

Methods

InitWithTmxFile(string)

System.Boolean InitWithTmxFile(string)(System.String tmxFile)

initializes a TMX Tiled Map with a TMX file

Parameters:
tmxFile (System.String)
Returns:
System.Boolean
Example

LayerNamed(string)

Cocos2D.CCTMXLayer LayerNamed(string)(System.String layerName)

return the TMXLayer for the specific layer

Parameters:
layerName (System.String)
Returns:
Cocos2D.CCTMXLayer
Example

ObjectGroupNamed(string)

Cocos2D.CCTMXObjectGroup ObjectGroupNamed(string)(System.String groupName)

return the TMXObjectGroup for the secific group

Parameters:
groupName (System.String)
Returns:
Cocos2D.CCTMXObjectGroup
Example

PropertiesForGID(uint)

System.Collections.Generic.DictionarySystem.String,System.String PropertiesForGID(uint)(System.UInt32 GID)

return properties dictionary for tile GID

Parameters:
GID (System.UInt32)
Returns:
System.Collections.Generic.DictionarySystem.String,System.String
Example

PropertyNamed(string)

System.String PropertyNamed(string)(System.String propertyName)

return the value for the specific property name

Parameters:
propertyName (System.String)
Returns:
System.String
Example