-------------------------------- -- @module TMXLayer -- @extend SpriteBatchNode -- @parent_module cc -------------------------------- -- Returns the position in points of a given tile coordinate.
-- param tileCoordinate The tile coordinate.
-- return The position in points of a given tile coordinate. -- @function [parent=#TMXLayer] getPositionAt -- @param self -- @param #vec2_table tileCoordinate -- @return vec2_table#vec2_table ret (return value: vec2_table) -------------------------------- -- Set layer orientation, which is the same as the map orientation.
-- param orientation Layer orientation,which is the same as the map orientation. -- @function [parent=#TMXLayer] setLayerOrientation -- @param self -- @param #int orientation -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) -------------------------------- -- Dealloc the map that contains the tile position from memory.
-- Unless you want to know at runtime the tiles positions, you can safely call this method.
-- If you are going to call layer->tileGIDAt() then, don't release the map. -- @function [parent=#TMXLayer] releaseMap -- @param self -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) -------------------------------- -- Size of the layer in tiles.
-- return Size of the layer in tiles. -- @function [parent=#TMXLayer] getLayerSize -- @param self -- @return size_table#size_table ret (return value: size_table) -------------------------------- -- Set the size of the map's tile.
-- param size The size of the map's tile. -- @function [parent=#TMXLayer] setMapTileSize -- @param self -- @param #size_table size -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) -------------------------------- -- Layer orientation, which is the same as the map orientation.
-- return Layer orientation, which is the same as the map orientation. -- @function [parent=#TMXLayer] getLayerOrientation -- @param self -- @return int#int ret (return value: int) -------------------------------- -- Set an Properties from to layer.
-- param properties It is used to set the layer Properties. -- @function [parent=#TMXLayer] setProperties -- @param self -- @param #map_table properties -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) -------------------------------- -- Set the layer name.
-- param layerName The layer name. -- @function [parent=#TMXLayer] setLayerName -- @param self -- @param #string layerName -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) -------------------------------- -- Removes a tile at given tile coordinate.
-- param tileCoordinate The tile coordinate. -- @function [parent=#TMXLayer] removeTileAt -- @param self -- @param #vec2_table tileCoordinate -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) -------------------------------- -- Initializes a TMXLayer with a tileset info, a layer info and a map info.
-- param tilesetInfo An tileset info.
-- param layerInfo A layer info.
-- param mapInfo A map info.
-- return If initializes successfully, it will return true. -- @function [parent=#TMXLayer] initWithTilesetInfo -- @param self -- @param #cc.TMXTilesetInfo tilesetInfo -- @param #cc.TMXLayerInfo layerInfo -- @param #cc.TMXMapInfo mapInfo -- @return bool#bool ret (return value: bool) -------------------------------- -- Creates the tiles. -- @function [parent=#TMXLayer] setupTiles -- @param self -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) -------------------------------- -- @overload self, unsigned int, vec2_table, int -- @overload self, unsigned int, vec2_table -- @function [parent=#TMXLayer] setTileGID -- @param self -- @param #unsigned int gid -- @param #vec2_table tileCoordinate -- @param #int flags -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) -------------------------------- -- Size of the map's tile (could be different from the tile's size).
-- return The size of the map's tile. -- @function [parent=#TMXLayer] getMapTileSize -- @param self -- @return size_table#size_table ret (return value: size_table) -------------------------------- -- Return the value for the specific property name.
-- param propertyName The specific property name.
-- return Return the value for the specific property name. -- @function [parent=#TMXLayer] getProperty -- @param self -- @param #string propertyName -- @return Value#Value ret (return value: cc.Value) -------------------------------- -- Set size of the layer in tiles.
-- param size Size of the layer in tiles. -- @function [parent=#TMXLayer] setLayerSize -- @param self -- @param #size_table size -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) -------------------------------- -- Get the layer name.
-- return The layer name. -- @function [parent=#TMXLayer] getLayerName -- @param self -- @return string#string ret (return value: string) -------------------------------- -- Set tileset information for the layer.
-- param info The tileset information for the layer.
-- js NA -- @function [parent=#TMXLayer] setTileSet -- @param self -- @param #cc.TMXTilesetInfo info -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) -------------------------------- -- Tileset information for the layer.
-- return Tileset information for the layer. -- @function [parent=#TMXLayer] getTileSet -- @param self -- @return TMXTilesetInfo#TMXTilesetInfo ret (return value: cc.TMXTilesetInfo) -------------------------------- -- @overload self -- @overload self -- @function [parent=#TMXLayer] getProperties -- @param self -- @return map_table#map_table ret (return value: map_table) -------------------------------- -- Returns the tile (Sprite) at a given a tile coordinate.
-- The returned Sprite will be already added to the TMXLayer. Don't add it again.
-- The Sprite can be treated like any other Sprite: rotated, scaled, translated, opacity, color, etc.
-- You can remove either by calling:
-- - layer->removeChild(sprite, cleanup);
-- - or layer->removeTileAt(Vec2(x,y));
-- param tileCoordinate A tile coordinate.
-- return Returns the tile (Sprite) at a given a tile coordinate. -- @function [parent=#TMXLayer] getTileAt -- @param self -- @param #vec2_table tileCoordinate -- @return Sprite#Sprite ret (return value: cc.Sprite) -------------------------------- -- Creates a TMXLayer with an tileset info, a layer info and a map info.
-- param tilesetInfo An tileset info.
-- param layerInfo A layer info.
-- param mapInfo A map info.
-- return An autorelease object. -- @function [parent=#TMXLayer] create -- @param self -- @param #cc.TMXTilesetInfo tilesetInfo -- @param #cc.TMXLayerInfo layerInfo -- @param #cc.TMXMapInfo mapInfo -- @return TMXLayer#TMXLayer ret (return value: cc.TMXLayer) -------------------------------- -- -- @function [parent=#TMXLayer] addChild -- @param self -- @param #cc.Node child -- @param #int zOrder -- @param #int tag -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) -------------------------------- -- js NA -- @function [parent=#TMXLayer] getDescription -- @param self -- @return string#string ret (return value: string) -------------------------------- -- -- @function [parent=#TMXLayer] removeChild -- @param self -- @param #cc.Node child -- @param #bool cleanup -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) -------------------------------- -- js ctor -- @function [parent=#TMXLayer] TMXLayer -- @param self -- @return TMXLayer#TMXLayer self (return value: cc.TMXLayer) return nil