Class Index | File Index

Classes


Class cc.TargetedAction


Extends cc.ActionInterval.

Defined in: CCActionInterval.js.

Class Summary
Constructor Attributes Constructor Name and Description
 

Overrides the target of an action so that it always runs on the target
specified at action creation rather than the one specified by runAction.

Method Summary
Method Attributes Method Name and Description
<static>  
cc.TargetedAction.create(target, action)
Create an action with the specified action and forced target
 
return the target that the action will be forced to run with
 
initWithTarget(target, action)
Init an action with the specified action and forced target
 
setForcedTarget(forcedTarget)
set the target that the action will be forced to run with
 
 
stop()
 
update(time)
Methods borrowed from class cc.ActionInterval:
getAmplitudeRate, getElapsed, initWithDuration, isDone, reverse, setAmplitudeRate, step
Methods borrowed from class cc.FiniteTimeAction:
getDuration, setDuration
Methods borrowed from class cc.Action:
copy, copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget
Class Detail
cc.TargetedAction()

Overrides the target of an action so that it always runs on the target
specified at action creation rather than the one specified by runAction.

Method Detail
<static> cc.TargetedAction.create(target, action)
Create an action with the specified action and forced target
Parameters:
{cc.Node} target
{cc.FiniteTimeAction} action

{cc.Node} getForcedTarget()
return the target that the action will be forced to run with
Returns:
{cc.Node}

{Boolean} initWithTarget(target, action)
Init an action with the specified action and forced target
Parameters:
{cc.Node} target
{cc.FiniteTimeAction} action
Returns:
{Boolean}

setForcedTarget(forcedTarget)
set the target that the action will be forced to run with
Parameters:
{cc.Node} forcedTarget

startWithTarget(target)
Parameters:
target

stop()

update(time)
Parameters:
time

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