2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Waves3D
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Grid3DAction
|
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
|
|
|
--------------------------------
|
2015-09-22 17:23:14 +08:00
|
|
|
-- brief Set the amplitude rate of the effect.<br>
|
2015-03-19 11:55:42 +08:00
|
|
|
-- param amplitudeRate The value of amplitude rate will be set.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Waves3D] setAmplitudeRate
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float amplitudeRate
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Waves3D#Waves3D self (return value: cc.Waves3D)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Initializes an action with duration, grid size, waves and amplitude.<br>
|
|
|
|
-- param duration Specify the duration of the Waves3D action. It's a value in seconds.<br>
|
|
|
|
-- param gridSize Specify the size of the grid.<br>
|
|
|
|
-- param waves Specify the waves count of the Waves3D action.<br>
|
|
|
|
-- param amplitude Specify the amplitude of the Waves3D action.<br>
|
|
|
|
-- return If the initialization success, return true; otherwise, return false.
|
|
|
|
-- @function [parent=#Waves3D] initWithDuration
|
|
|
|
-- @param self
|
|
|
|
-- @param #float duration
|
|
|
|
-- @param #size_table gridSize
|
|
|
|
-- @param #unsigned int waves
|
|
|
|
-- @param #float amplitude
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Get the amplitude of the effect.<br>
|
|
|
|
-- return Return the amplitude of the effect.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Waves3D] getAmplitude
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Get the amplitude rate of the effect.<br>
|
|
|
|
-- return Return the amplitude rate of the effect.
|
|
|
|
-- @function [parent=#Waves3D] getAmplitudeRate
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- brief Set the amplitude to the effect.<br>
|
|
|
|
-- param amplitude The value of amplitude will be set.
|
|
|
|
-- @function [parent=#Waves3D] setAmplitude
|
|
|
|
-- @param self
|
|
|
|
-- @param #float amplitude
|
|
|
|
-- @return Waves3D#Waves3D self (return value: cc.Waves3D)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Create an action with duration, grid size, waves and amplitude.<br>
|
|
|
|
-- param duration Specify the duration of the Waves3D action. It's a value in seconds.<br>
|
|
|
|
-- param gridSize Specify the size of the grid.<br>
|
|
|
|
-- param waves Specify the waves count of the Waves3D action.<br>
|
|
|
|
-- param amplitude Specify the amplitude of the Waves3D action.<br>
|
2015-09-22 17:23:14 +08:00
|
|
|
-- return If the creation success, return a pointer of Waves3D action; otherwise, return nil.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Waves3D] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float duration
|
|
|
|
-- @param #size_table gridSize
|
|
|
|
-- @param #unsigned int waves
|
|
|
|
-- @param #float amplitude
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return Waves3D#Waves3D ret (return value: cc.Waves3D)
|
|
|
|
|
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=#Waves3D] clone
|
|
|
|
-- @param self
|
|
|
|
-- @return Waves3D#Waves3D ret (return value: cc.Waves3D)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Waves3D] update
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float time
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Waves3D#Waves3D self (return value: cc.Waves3D)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Waves3D] Waves3D
|
|
|
|
-- @param self
|
|
|
|
-- @return Waves3D#Waves3D self (return value: cc.Waves3D)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|