CCTMXTiledMap
CCTMXTiledMap
Cocos2DInheritance: 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
Properties
map orientation
the map's size property measured in tiles
object groups
properties
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