2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module TMXTiledMap
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Node
|
2015-09-27 23:24:49 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-09-27 23:24:49 +08:00
|
|
|
-- Set the object groups. <br>
|
|
|
|
-- param groups The object groups.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] setObjectGroups
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #array_table groups
|
2015-09-27 23:24:49 +08:00
|
|
|
-- @return TMXTiledMap#TMXTiledMap self (return value: cc.TMXTiledMap)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-09-27 23:24:49 +08:00
|
|
|
-- Return the value for the specific property name. <br>
|
|
|
|
-- param propertyName The specific property name.<br>
|
2015-03-23 16:32:54 +08:00
|
|
|
-- return Return the value for the specific property name.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] getProperty
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string propertyName
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return Value#Value ret (return value: cc.Value)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-09-27 23:24:49 +08:00
|
|
|
-- Set the map's size property measured in tiles. <br>
|
2015-03-23 16:32:54 +08:00
|
|
|
-- param mapSize The map's size property measured in tiles.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] setMapSize
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #size_table mapSize
|
2015-09-27 23:24:49 +08:00
|
|
|
-- @return TMXTiledMap#TMXTiledMap self (return value: cc.TMXTiledMap)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-23 16:32:54 +08:00
|
|
|
-- Return the TMXObjectGroup for the specific group. <br>
|
2015-09-27 23:24:49 +08:00
|
|
|
-- param groupName The group Name.<br>
|
|
|
|
-- return A Type of TMXObjectGroup.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] getObjectGroup
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string groupName
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return TMXObjectGroup#TMXObjectGroup ret (return value: cc.TMXObjectGroup)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self
|
|
|
|
-- @overload self
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] getObjectGroups
|
|
|
|
-- @param self
|
2014-10-17 22:56:22 +08:00
|
|
|
-- @return array_table#array_table ret (return value: array_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-09-27 23:24:49 +08:00
|
|
|
-- initializes a TMX Tiled Map with a TMX formatted XML string and a path to TMX resources
|
|
|
|
-- @function [parent=#TMXTiledMap] initWithXML
|
|
|
|
-- @param self
|
|
|
|
-- @param #string tmxString
|
|
|
|
-- @param #string resourcePath
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- initializes a TMX Tiled Map with a TMX file
|
|
|
|
-- @function [parent=#TMXTiledMap] initWithTMXFile
|
|
|
|
-- @param self
|
|
|
|
-- @param #string tmxFile
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- The tiles's size property measured in pixels. <br>
|
2015-03-23 16:32:54 +08:00
|
|
|
-- return The tiles's size property measured in pixels.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] getTileSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-23 16:32:54 +08:00
|
|
|
-- The map's size property measured in tiles. <br>
|
|
|
|
-- return The map's size property measured in tiles.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] getMapSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-09-27 23:24:49 +08:00
|
|
|
-- Properties. <br>
|
2015-03-23 16:32:54 +08:00
|
|
|
-- return Properties.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] getProperties
|
|
|
|
-- @param self
|
|
|
|
-- @return map_table#map_table ret (return value: map_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-23 16:32:54 +08:00
|
|
|
-- Set the tiles's size property measured in pixels. <br>
|
|
|
|
-- param tileSize The tiles's size property measured in pixels.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] setTileSize
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #size_table tileSize
|
2015-09-27 23:24:49 +08:00
|
|
|
-- @return TMXTiledMap#TMXTiledMap self (return value: cc.TMXTiledMap)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-09-27 23:24:49 +08:00
|
|
|
-- Set the properties.<br>
|
|
|
|
-- param properties A Type of ValueMap to set the properties.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] setProperties
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #map_table properties
|
2015-09-27 23:24:49 +08:00
|
|
|
-- @return TMXTiledMap#TMXTiledMap self (return value: cc.TMXTiledMap)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-09-27 23:24:49 +08:00
|
|
|
-- Return the TMXLayer for the specific layer. <br>
|
|
|
|
-- param layerName A specific layer.<br>
|
|
|
|
-- return The TMXLayer for the specific layer.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] getLayer
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string layerName
|
2015-09-27 23:24:49 +08:00
|
|
|
-- @return TMXLayer#TMXLayer ret (return value: cc.TMXLayer)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-09-27 23:24:49 +08:00
|
|
|
-- Map orientation. <br>
|
|
|
|
-- return Map orientation.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] getMapOrientation
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-23 16:32:54 +08:00
|
|
|
-- Set map orientation. <br>
|
|
|
|
-- param mapOrientation The map orientation.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] setMapOrientation
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int mapOrientation
|
2015-09-27 23:24:49 +08:00
|
|
|
-- @return TMXTiledMap#TMXTiledMap self (return value: cc.TMXTiledMap)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-23 16:32:54 +08:00
|
|
|
-- Creates a TMX Tiled Map with a TMX file.<br>
|
2015-09-27 23:24:49 +08:00
|
|
|
-- param tmxFile A TMX file.<br>
|
2015-03-23 16:32:54 +08:00
|
|
|
-- return An autorelease object.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string tmxFile
|
2015-09-27 23:24:49 +08:00
|
|
|
-- @return TMXTiledMap#TMXTiledMap ret (return value: cc.TMXTiledMap)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-23 16:32:54 +08:00
|
|
|
-- Initializes a TMX Tiled Map with a TMX formatted XML string and a path to TMX resources. <br>
|
|
|
|
-- param tmxString A TMX formatted XML string.<br>
|
2015-09-27 23:24:49 +08:00
|
|
|
-- param resourcePath The path to TMX resources.<br>
|
|
|
|
-- return An autorelease object.<br>
|
|
|
|
-- js NA
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] createWithXML
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string tmxString
|
|
|
|
-- @param #string resourcePath
|
2015-09-27 23:24:49 +08:00
|
|
|
-- @return TMXTiledMap#TMXTiledMap ret (return value: cc.TMXTiledMap)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2015-09-27 23:24:49 +08:00
|
|
|
-- Get the description.<br>
|
|
|
|
-- js NA
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#TMXTiledMap] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
2015-09-27 23:24:49 +08:00
|
|
|
--------------------------------
|
|
|
|
-- js ctor
|
|
|
|
-- @function [parent=#TMXTiledMap] TMXTiledMap
|
|
|
|
-- @param self
|
|
|
|
-- @return TMXTiledMap#TMXTiledMap self (return value: cc.TMXTiledMap)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|