Class ccs.ActionObject

Class Summary
Constructor Attributes Constructor Name and Description
 
Base class for ccs.ActionObject

Method Summary

Class Detail

ccs.ActionObject()
Base class for ccs.ActionObject

Method Detail

  • addActionNode(node)
    Adds a ActionNode to play the action.
    Parameters:
    {ccs.ActionNode} node
  • {number} getCurrentTime()
    Gets the current time of frame.
    Returns:
    {number}
  • {boolean} getLoop()
    Gets if the action will loop play.
    Returns:
    {boolean}
  • {string} getName()
    Gets name for object
    Returns:
    {string}
  • {number} getUnitTime()
    Gets the time interval of frame.
    Returns:
    {number}
  • initWithDictionary(dic, root)
    Init properties with a json dictionary
    Parameters:
    {Object} dic
    {Object} root
  • {boolean} isPlaying()
    Return if the action is playing.
    Returns:
    {boolean}
  • pause()
    pause the action.
  • play(fun)
    Play the action.
    Parameters:
    {cc.CallFunc} fun
  • removeActionNode(node)
    Removes a ActionNode which play the action.
    Parameters:
    {ccs.ActionNode} node
  • setCurrentTime(time)
    Sets the current time of frame.
    Parameters:
    time
  • setLoop(loop)
    Sets if the action will loop play.
    Parameters:
    {boolean} loop
  • setName(name)
    Sets name for object
    Parameters:
    {string} name
  • setUnitTime(time)
    Sets the time interval of frame.
    Parameters:
    {number} time
  • stop()
    stop the action.
  • updateToFrameByTime(time)
    Method of update frame .
    Parameters:
    time