summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/ccs.ActionObject.lua
blob: 3f3a26249719a27efc2ac2d7113e10584ac5b157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

---@class ccs.ActionObject :cc.Ref
local ActionObject={ }
ccs.ActionObject=ActionObject




---* Sets the current time of frame.<br>
---* param fTime   the current time of frame
---@param fTime float
---@return self
function ActionObject:setCurrentTime (fTime) end
---* Pause the action.
---@return self
function ActionObject:pause () end
---* Sets name for object<br>
---* param name    name of object
---@param name char
---@return self
function ActionObject:setName (name) end
---* Sets the time interval of frame.<br>
---* param fTime   the time interval of frame
---@param fTime float
---@return self
function ActionObject:setUnitTime (fTime) end
---* Gets the total time of frame.<br>
---* return the total time of frame
---@return float
function ActionObject:getTotalTime () end
---* Gets name of object<br>
---* return name of object
---@return char
function ActionObject:getName () end
---* Stop the action.
---@return self
function ActionObject:stop () end
---@overload fun(cc.CallFunc:cc.CallFunc):self
---@overload fun():self
---@param func cc.CallFunc
---@return self
function ActionObject:play (func) end
---* Gets the current time of frame.<br>
---* return the current time of frame
---@return float
function ActionObject:getCurrentTime () end
---* Removes a ActionNode which play the action.<br>
---* param node    the ActionNode which play the action
---@param node ccs.ActionNode
---@return self
function ActionObject:removeActionNode (node) end
---* Gets if the action will loop play.<br>
---* return   that if the action will loop play
---@return boolean
function ActionObject:getLoop () end
---* Adds a ActionNode to play the action.<br>
---* param node    the ActionNode which will play the action
---@param node ccs.ActionNode
---@return self
function ActionObject:addActionNode (node) end
---* Gets the time interval of frame.<br>
---* return the time interval of frame
---@return float
function ActionObject:getUnitTime () end
---* Return if the action is playing.<br>
---* return true if the action is playing, false the otherwise
---@return boolean
function ActionObject:isPlaying () end
---* 
---@param fTime float
---@return self
function ActionObject:updateToFrameByTime (fTime) end
---* Sets if the action will loop play.<br>
---* param bLoop     that if the action will loop play
---@param bLoop boolean
---@return self
function ActionObject:setLoop (bLoop) end
---* 
---@param dt float
---@return self
function ActionObject:simulationActionUpdate (dt) end
---* Default constructor
---@return self
function ActionObject:ActionObject () end