2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module GridBase
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Ref
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] setGridSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] calculateVertexPoints
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] afterDraw
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node node
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] beforeDraw
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] isTextureFlipped
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] getGridSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] getStep
|
|
|
|
-- @param self
|
2014-05-15 01:16:02 +08:00
|
|
|
-- @return Vec2#Vec2 ret (return value: cc.Vec2)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] set2DProjection
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] setStep
|
|
|
|
-- @param self
|
2014-05-15 01:16:02 +08:00
|
|
|
-- @param #cc.Vec2 vec2
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] setTextureFlipped
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] blit
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] setActive
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] getReuseGrid
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- overload function: initWithSize(size_table)
|
|
|
|
--
|
|
|
|
-- overload function: initWithSize(size_table, cc.Texture2D, bool)
|
|
|
|
--
|
|
|
|
-- @function [parent=#GridBase] initWithSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
|
|
|
-- @param #cc.Texture2D texture2d
|
|
|
|
-- @param #bool bool
|
|
|
|
-- @return bool#bool ret (retunr value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] setReuseGrid
|
|
|
|
-- @param self
|
|
|
|
-- @param #int int
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] isActive
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GridBase] reuse
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- overload function: create(size_table)
|
|
|
|
--
|
|
|
|
-- overload function: create(size_table, cc.Texture2D, bool)
|
|
|
|
--
|
|
|
|
-- @function [parent=#GridBase] create
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
|
|
|
-- @param #cc.Texture2D texture2d
|
|
|
|
-- @param #bool bool
|
|
|
|
-- @return GridBase#GridBase ret (retunr value: cc.GridBase)
|
|
|
|
|
|
|
|
return nil
|