Class Index | File Index

Classes


Class cc.Sequence


Extends cc.ActionInterval.

Defined in: CCActionInterval.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Runs actions sequentially, one after another
Method Summary
Method Attributes Method Name and Description
 
copy()
to copy object with deep copy.
<static>  
cc.Sequence.create(tempArray)
helper constructor to create an array of sequenceable actions
 
ctor()
Constructor
 
initOneTwo(actionOne, actionTwo)
initializes the action
 
 
 
stop()
stop the action
 
update(time)
Methods borrowed from class cc.ActionInterval:
getAmplitudeRate, getElapsed, initWithDuration, isDone, setAmplitudeRate, step
Methods borrowed from class cc.FiniteTimeAction:
getDuration, setDuration
Methods borrowed from class cc.Action:
copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget
Class Detail
cc.Sequence()
Runs actions sequentially, one after another
Method Detail
{object} copy()
to copy object with deep copy.
Returns:
{object}

<static> {cc.FiniteTimeAction} cc.Sequence.create(tempArray)
helper constructor to create an array of sequenceable actions
// example
// create sequence with actions
var seq = cc.Sequence.create(act1, act2);

// create sequence with array
var seq = cc.Sequence.create(actArray);
Parameters:
{Array|cc.FiniteTimeAction} tempArray
Returns:
{cc.FiniteTimeAction}

ctor()
Constructor

{Boolean} initOneTwo(actionOne, actionTwo)
initializes the action
Parameters:
{cc.FiniteTimeAction} actionOne
{cc.FiniteTimeAction} actionTwo
Returns:
{Boolean}

{cc.ActionInterval} reverse()
Returns:
{cc.ActionInterval}

startWithTarget(target)
Parameters:
{cc.Node} target

stop()
stop the action

update(time)
Parameters:
{Number} time
time in seconds

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 09 2013 07:51:53 GMT-0800 (PST)