2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Timer
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Ref
|
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
|
|
|
-- get interval in seconds
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Timer] getInterval
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Timer] setupTimerWithInterval
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float seconds
|
|
|
|
-- @param #unsigned int repeat
|
|
|
|
-- @param #float delay
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Timer#Timer self (return value: cc.Timer)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- set interval in seconds
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Timer] setInterval
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float interval
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Timer#Timer self (return value: cc.Timer)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- triggers the timer
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Timer] update
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float dt
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Timer#Timer self (return value: cc.Timer)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Timer] trigger
|
|
|
|
-- @param self
|
2015-08-13 17:11:00 +08:00
|
|
|
-- @param #float dt
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Timer#Timer self (return value: cc.Timer)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Timer] cancel
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Timer#Timer self (return value: cc.Timer)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
return nil
|