2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module TileMapAtlas
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend AtlasNode
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- initializes a TileMap with a tile file (atlas) with a map file and the width and height of each tile in points.<br>
|
|
|
|
-- The file will be loaded using the TextureMgr.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TileMapAtlas] initWithTileFile
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string tile
|
|
|
|
-- @param #string mapFile
|
|
|
|
-- @param #int tileWidth
|
|
|
|
-- @param #int tileHeight
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- dealloc the map from memory
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TileMapAtlas] releaseMap
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- returns a tile from position x,y.<br>
|
|
|
|
-- For the moment only channel R is used
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TileMapAtlas] getTileAt
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #vec2_table position
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @return color3b_table#color3b_table ret (return value: color3b_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- sets a tile at position x,y.<br>
|
|
|
|
-- For the moment only channel R is used
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TileMapAtlas] setTile
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #color3b_table tile
|
|
|
|
-- @param #vec2_table position
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- creates a TileMap with a tile file (atlas) with a map file and the width and height of each tile in points.<br>
|
|
|
|
-- The tile file will be loaded using the TextureMgr.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TileMapAtlas] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string tile
|
|
|
|
-- @param #string mapFile
|
|
|
|
-- @param #int tileWidth
|
|
|
|
-- @param #int tileHeight
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return TileMapAtlas#TileMapAtlas ret (return value: cc.TileMapAtlas)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- js ctor
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#TileMapAtlas] TileMapAtlas
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
return nil
|