be.saltwater.jaqel.scheduler
Class KeyFrameBehavior

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Leaf
              extended byjavax.media.j3d.Behavior
                  extended bybe.saltwater.jaqel.scheduler.ScheduledBehavior
                      extended bybe.saltwater.jaqel.scheduler.KeyFrameBehavior
Direct Known Subclasses:
AttributeBehavior

public class KeyFrameBehavior
extends ScheduledBehavior

"Plays" a KeyFrameAnimation on a given Morph object "loopcount" times. -1 will repeat the animation infinitely.

See Also:
Morph, KeyFrameAnimation

Field Summary
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
KeyFrameBehavior(CreatureActionScheduler scheduler, KeyFrameAnimation animation, Creature creature, int loopcount)
           
 
Method Summary
 WeightCalculator getWeightCalculator()
           
 void internalInitialize()
          Called when this behavior becomes active.
 void processStimulus(java.util.Enumeration criteria)
           
 
Methods inherited from class be.saltwater.jaqel.scheduler.ScheduledBehavior
finishAction, finishAnimation, getAlpha, getBranchGroup, initialize
 
Methods inherited from class javax.media.j3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn
 
Methods inherited from class javax.media.j3d.Node
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyFrameBehavior

public KeyFrameBehavior(CreatureActionScheduler scheduler,
                        KeyFrameAnimation animation,
                        Creature creature,
                        int loopcount)
Parameters:
loopcount - How many times to play this animation, -1 will play infinite
animation - The keyframe animation to play
Method Detail

internalInitialize

public void internalInitialize()
Description copied from class: ScheduledBehavior
Called when this behavior becomes active.

Specified by:
internalInitialize in class ScheduledBehavior

processStimulus

public void processStimulus(java.util.Enumeration criteria)

getWeightCalculator

public final WeightCalculator getWeightCalculator()