2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Twirl
|
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-03-19 11:55:42 +08:00
|
|
|
-- brief Set the ampliture rate of the effect.<br>
|
|
|
|
-- param amplitudeRate The value of amplitude rate will be set.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Twirl] setAmplitudeRate
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float amplitudeRate
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Twirl#Twirl self (return value: cc.Twirl)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Get the amplitude rate of the effect.<br>
|
|
|
|
-- return Return the amplitude rate of the effect.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Twirl] getAmplitudeRate
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Set the amplitude to the effect.<br>
|
|
|
|
-- param amplitude The value of amplitude will be set.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Twirl] setAmplitude
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float amplitude
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Twirl#Twirl self (return value: cc.Twirl)
|
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=#Twirl] getAmplitude
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Set the center position of twirl action.<br>
|
|
|
|
-- param position The center position of twirl action will be set.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Twirl] setPosition
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #vec2_table position
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Twirl#Twirl self (return value: cc.Twirl)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Get the center position of twirl action.<br>
|
|
|
|
-- return The center position of twirl action.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Twirl] getPosition
|
|
|
|
-- @param self
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Create the action with center position, number of twirls, amplitude, a grid size and duration.<br>
|
|
|
|
-- param duration Specify the duration of the Twirl action. It's a value in seconds.<br>
|
|
|
|
-- param gridSize Specify the size of the grid.<br>
|
|
|
|
-- param position Specify the center position of the twirl action.<br>
|
|
|
|
-- param twirls Specify the twirls count of the Twirl action.<br>
|
|
|
|
-- param amplitude Specify the amplitude of the Twirl action.<br>
|
|
|
|
-- return If the creation sucess, return a pointer of Twirl action; otherwise, return nil.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Twirl] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float duration
|
|
|
|
-- @param #size_table gridSize
|
|
|
|
-- @param #vec2_table position
|
|
|
|
-- @param #unsigned int twirls
|
|
|
|
-- @param #float amplitude
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return Twirl#Twirl ret (return value: cc.Twirl)
|
|
|
|
|
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=#Twirl] clone
|
|
|
|
-- @param self
|
|
|
|
-- @return Twirl#Twirl ret (return value: cc.Twirl)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Twirl] update
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float time
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Twirl#Twirl self (return value: cc.Twirl)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|