2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ShatteredTiles3D
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend TiledGrid3DAction
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Initializes the action with a range, shatter Z vertices, grid size and duration.<br>
|
|
|
|
-- param duration Specify the duration of the ShatteredTiles3D action. It's a value in seconds.<br>
|
|
|
|
-- param gridSize Specify the size of the grid.<br>
|
|
|
|
-- param range Specify the range of the shatter effect.<br>
|
|
|
|
-- param shatterZ Specify whether shake on the z axis.<br>
|
|
|
|
-- return If the Initialization success, return true; otherwise, return false.
|
|
|
|
-- @function [parent=#ShatteredTiles3D] initWithDuration
|
|
|
|
-- @param self
|
|
|
|
-- @param #float duration
|
|
|
|
-- @param #size_table gridSize
|
|
|
|
-- @param #int range
|
|
|
|
-- @param #bool shatterZ
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Create the action with a range, whether of not to shatter Z vertices, grid size and duration.<br>
|
|
|
|
-- param duration Specify the duration of the ShatteredTiles3D action. It's a value in seconds.<br>
|
|
|
|
-- param gridSize Specify the size of the grid.<br>
|
|
|
|
-- param range Specify the range of the shatter effect.<br>
|
|
|
|
-- param shatterZ Specify whether shatter on the z axis.<br>
|
|
|
|
-- return If the creation success, return a pointer of ShatteredTiles3D action; otherwise, return nil.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ShatteredTiles3D] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float duration
|
|
|
|
-- @param #size_table gridSize
|
|
|
|
-- @param #int range
|
|
|
|
-- @param #bool shatterZ
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return ShatteredTiles3D#ShatteredTiles3D ret (return value: cc.ShatteredTiles3D)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#ShatteredTiles3D] clone
|
|
|
|
-- @param self
|
|
|
|
-- @return ShatteredTiles3D#ShatteredTiles3D ret (return value: cc.ShatteredTiles3D)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#ShatteredTiles3D] update
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float time
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ShatteredTiles3D#ShatteredTiles3D self (return value: cc.ShatteredTiles3D)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ShatteredTiles3D] ShatteredTiles3D
|
|
|
|
-- @param self
|
|
|
|
-- @return ShatteredTiles3D#ShatteredTiles3D self (return value: cc.ShatteredTiles3D)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|