Class Index | File Index

Classes


Class CAAT.Behavior.GenericBehavior


Extends CAAT.Behavior.BaseBehavior.

Defined in: GenericBehavior.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
this callback will be invoked for every behavior application.
 
end
ending value.
 
property to apply values to.
 
starting value.
 
target to apply this generic behvior.
Fields borrowed from class CAAT.Behavior.BaseBehavior:
actor, behaviorDuration, behaviorStartTime, cycleBehavior, discardable, doValueApplication, id, interpolator, isRelative, lifecycleListenerList, solved, status, timeOffset
Method Summary
Method Attributes Method Name and Description
 
setForTime(time, actor)
 
setValues(start, end, target, property, callback)
Defines the values to apply this behavior.
Methods borrowed from class CAAT.Behavior.BaseBehavior:
__init, addListener, apply, calculateKeyFrameData, calculateKeyFramesData, emptyListenerList, fireBehaviorAppliedEvent, fireBehaviorExpiredEvent, fireBehaviorStartedEvent, getDuration, getKeyFrameDataValues, getPropertyName, getStartTime, initialize, isBehaviorInTime, isCycle, normalizeTime, parse, setCycle, setDefaultInterpolator, setDelayTime, setExpired, setFrameTime, setId, setInterpolator, setOutOfFrameTime, setPingPong, setRelative, setRelativeValues, setStatus, setTimeOffset, setValueApplication
Class Detail
CAAT.Behavior.GenericBehavior()
Field Detail
callback
this callback will be invoked for every behavior application.

end
ending value.

property
property to apply values to.

start
starting value.

target
target to apply this generic behvior.
Method Detail
setForTime(time, actor)
Parameters:
time
actor

setValues(start, end, target, property, callback)
Defines the values to apply this behavior.
Parameters:
start
{number} initial behavior value.
end
{number} final behavior value.
target
{object} an object. Usually a CAAT.Actor.
property
{string} target object's property to set value to.
callback
{function} a function of the form function( target, value ).

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:15 GMT-0700 (PDT)