Class Index | File Index

Classes


Class cc.EaseElastic


Extends cc.ActionEase.

Defined in: CCActionEase.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Ease Elastic abstract class
Method Summary
Method Attributes Method Name and Description
<static>  
cc.EaseElastic.create(action, period)
Creates the action with the inner action and the period in radians (default is 0.3)
 
get period of the wave in radians.
 
initWithAction(action, period)
Initializes the action with the inner action and the period in radians (default is 0.3)
 
 
setPeriod(period)
set period of the wave in radians.
Methods borrowed from class cc.ActionEase:
startWithTarget, stop, update
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:
copy, copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget
Class Detail
cc.EaseElastic()
Ease Elastic abstract class
Method Detail
<static> {cc.EaseElastic} cc.EaseElastic.create(action, period)
Creates the action with the inner action and the period in radians (default is 0.3)
// example
var moveEaseElastic = cc.EaseElastic.create(action, 3.0);
Parameters:
{cc.ActionInterval} action
{Number} period
Returns:
{cc.EaseElastic}

{Number} getPeriod()
get period of the wave in radians. default is 0.3
Returns:
{Number}

{Boolean} initWithAction(action, period)
Initializes the action with the inner action and the period in radians (default is 0.3)
Parameters:
{cc.ActionInterval} action
{Number} period
Returns:
{Boolean}

{Null} reverse()
Returns:
{Null}

setPeriod(period)
set period of the wave in radians.
Parameters:
{Number} period

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