Skip to main content

CCTileMapAtlas

CCTileMapAtlas

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCAtlasNode

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

CCTileMapAtlas()

CCTileMapAtlas()()

Fields

m_nItemsToRender(System.Int32)
m_pPosToAtlasIndex(System.Collections.Generic.DictionaryCocos2D.CCGridSize,System.Int32)

Properties

TGAInfo(Cocos2D.CCImageTGA)

Methods

Create(string, string, int, int)

Cocos2D.CCTileMapAtlas Create(string, string, int, int)(System.String tile, System.String mapFile, System.Int32 tileWidth, System.Int32 tileHeight)
Parameters:
tile (System.String)
mapFile (System.String)
tileWidth (System.Int32)
tileHeight (System.Int32)
Returns:
Cocos2D.CCTileMapAtlas

InitWithTileFile(string, string, int, int)

System.Boolean InitWithTileFile(string, string, int, int)(System.String tile, System.String mapFile, System.Int32 tileWidth, System.Int32 tileHeight)
Parameters:
tile (System.String)
mapFile (System.String)
tileWidth (System.Int32)
tileHeight (System.Int32)
Returns:
System.Boolean

ReleaseMap()

ReleaseMap()()

SetTile(Color, CCGridSize)

SetTile(Color, CCGridSize)(Microsoft.Xna.Framework.Color tile, Cocos2D.CCGridSize position)
Parameters:
tile (Microsoft.Xna.Framework.Color)
position (Cocos2D.CCGridSize)

TileAt(CCGridSize)

Microsoft.Xna.Framework.Color TileAt(CCGridSize)(Cocos2D.CCGridSize position)
Parameters:
position (Cocos2D.CCGridSize)
Returns:
Microsoft.Xna.Framework.Color

UpdateAtlasValues()

UpdateAtlasValues()()
Example