mirror of https://github.com/axmolengine/axmol.git
126 lines
3.6 KiB
Lua
126 lines
3.6 KiB
Lua
|
|
--------------------------------
|
|
-- @module ActionObject
|
|
-- @extend Ref
|
|
-- @parent_module ccs
|
|
|
|
--------------------------------
|
|
-- Sets the current time of frame.<br>
|
|
-- param fTime the current time of frame
|
|
-- @function [parent=#ActionObject] setCurrentTime
|
|
-- @param self
|
|
-- @param #float fTime
|
|
|
|
--------------------------------
|
|
-- Pause the action.
|
|
-- @function [parent=#ActionObject] pause
|
|
-- @param self
|
|
|
|
--------------------------------
|
|
-- Sets name for object<br>
|
|
-- param name name of object
|
|
-- @function [parent=#ActionObject] setName
|
|
-- @param self
|
|
-- @param #char name
|
|
|
|
--------------------------------
|
|
-- Sets the time interval of frame.<br>
|
|
-- param fTime the time interval of frame
|
|
-- @function [parent=#ActionObject] setUnitTime
|
|
-- @param self
|
|
-- @param #float fTime
|
|
|
|
--------------------------------
|
|
-- Gets the total time of frame.<br>
|
|
-- return the total time of frame
|
|
-- @function [parent=#ActionObject] getTotalTime
|
|
-- @param self
|
|
-- @return float#float ret (return value: float)
|
|
|
|
--------------------------------
|
|
-- Gets name of object<br>
|
|
-- return name of object
|
|
-- @function [parent=#ActionObject] getName
|
|
-- @param self
|
|
-- @return char#char ret (return value: char)
|
|
|
|
--------------------------------
|
|
-- Stop the action.
|
|
-- @function [parent=#ActionObject] stop
|
|
-- @param self
|
|
|
|
--------------------------------
|
|
-- @overload self, cc.CallFunc
|
|
-- @overload self
|
|
-- @function [parent=#ActionObject] play
|
|
-- @param self
|
|
-- @param #cc.CallFunc func
|
|
|
|
--------------------------------
|
|
-- Gets the current time of frame.<br>
|
|
-- return the current time of frame
|
|
-- @function [parent=#ActionObject] getCurrentTime
|
|
-- @param self
|
|
-- @return float#float ret (return value: float)
|
|
|
|
--------------------------------
|
|
-- Removes a ActionNode which play the action.<br>
|
|
-- param node the ActionNode which play the action
|
|
-- @function [parent=#ActionObject] removeActionNode
|
|
-- @param self
|
|
-- @param #ccs.ActionNode node
|
|
|
|
--------------------------------
|
|
-- Gets if the action will loop play.<br>
|
|
-- return that if the action will loop play
|
|
-- @function [parent=#ActionObject] getLoop
|
|
-- @param self
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- Adds a ActionNode to play the action.<br>
|
|
-- param node the ActionNode which will play the action
|
|
-- @function [parent=#ActionObject] addActionNode
|
|
-- @param self
|
|
-- @param #ccs.ActionNode node
|
|
|
|
--------------------------------
|
|
-- Gets the time interval of frame.<br>
|
|
-- return the time interval of frame
|
|
-- @function [parent=#ActionObject] getUnitTime
|
|
-- @param self
|
|
-- @return float#float ret (return value: float)
|
|
|
|
--------------------------------
|
|
-- Return if the action is playing.<br>
|
|
-- return true if the action is playing, false the otherwise
|
|
-- @function [parent=#ActionObject] isPlaying
|
|
-- @param self
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#ActionObject] updateToFrameByTime
|
|
-- @param self
|
|
-- @param #float fTime
|
|
|
|
--------------------------------
|
|
-- Sets if the action will loop play.<br>
|
|
-- param bLoop that if the action will loop play
|
|
-- @function [parent=#ActionObject] setLoop
|
|
-- @param self
|
|
-- @param #bool bLoop
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#ActionObject] simulationActionUpdate
|
|
-- @param self
|
|
-- @param #float dt
|
|
|
|
--------------------------------
|
|
-- Default constructor
|
|
-- @function [parent=#ActionObject] ActionObject
|
|
-- @param self
|
|
|
|
return nil
|