Class CAAT.Behavior.GenericBehavior
Extends
CAAT.Behavior.BaseBehavior.
Defined in: GenericBehavior.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
this callback will be invoked for every behavior application.
|
|
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 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
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 )
.