Class cc.TMXMapInfo
Extends
cc.SAXParser.
Defined in: CCTMXXMLParser.js.
Constructor Attributes | Constructor Name and Description |
---|---|
cc.TMXMapInfo contains the information about the map like: And it also contains: This information is obtained from the TMX file. |
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.TMXMapInfo.create(tmxFile, resourcePath)
Creates a TMX Format with a tmx file
|
ctor()
|
|
layer attribute
|
|
Layers
|
|
Map width & height
|
|
ObjectGroups
|
|
parent element
|
|
parent GID
|
|
Properties
|
|
is string characters?
|
|
tilesets
|
|
Tiles width & height
|
|
initWithTMXFile(tmxFile, resourcePath)
Initializes a TMX format with a tmx file
|
|
parseXMLFile(tmxFile)
Initalises parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file
|
|
setCurrentString(currentString)
|
|
setLayerAttribs(Var)
|
|
setLayers(Var)
|
|
setMapSize(Var)
|
|
setObjectGroups(Var)
|
|
setOrientation(Var)
|
|
setParentElement(Var)
|
|
setParentGID(Var)
|
|
setProperties(Var)
|
|
setStoringCharacters(Var)
|
|
setTileProperties(tileProperties)
|
|
setTilesets(Var)
|
|
setTileSize(Var)
|
|
setTMXFileName(fileName)
|
- Methods borrowed from class cc.SAXParser:
- getExt, getList, getName, parse, preloadPlist, tmxParse
cc.TMXMapInfo contains the information about the map like:
- Map orientation (hexagonal, isometric or orthogonal)
- Tile size
- Map size
And it also contains:
- Layers (an array of TMXLayerInfo objects)
- Tilesets (an array of TMXTilesetInfo objects)
- ObjectGroups (an array of TMXObjectGroupInfo objects)
This information is obtained from the TMX file.
- Parameters:
- {String} tmxFile
- {String} resourcePath
- Returns:
- {cc.TMXMapInfo}
- Returns:
- {String}
- Returns:
- {Number}
- Returns:
- {Array}
- Returns:
- {cc.Size}
- Returns:
- {Array}
- Returns:
- {Number}
- Returns:
- {Number}
- Returns:
- {Number}
- Returns:
- {Array}
- Returns:
- {Boolean}
- Returns:
- {object}
- Returns:
- {Array}
- Returns:
- {cc.Size}
- Returns:
- {String}
- Parameters:
- {String} tmxFile
- resourcePath
- Returns:
- {String}
- Parameters:
- {String} tmxFile
- Returns:
- {Element}
- Parameters:
- {String} currentString
- Parameters:
- {Number} Var
- Parameters:
- {cc.TMXLayerInfo} Var
- Parameters:
- {cc.Size} Var
- Parameters:
- {cc.TMXObjectGroup} Var
- Parameters:
- {Number} Var
- Parameters:
- {Number} Var
- Parameters:
- {Number} Var
- Parameters:
- {object} Var
- Parameters:
- {Boolean} Var
- Parameters:
- {object} tileProperties
- Parameters:
- {cc.TMXTilesetInfo} Var
- Parameters:
- {cc.Size} Var
- Parameters:
- {String} fileName