|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Leaf
javax.media.j3d.Behavior
be.saltwater.jaqel.scheduler.ScheduledBehavior
A behavior that can notify a CreatureActionScheduler when it's finished. Don't add this Behavior to the scene graph, instead, add it's parent BranchGroup. You can get it with getBranchGroup(). This is needed because a ScheduledBehavior needs to be detached from the scene graph when it has finished.
CreatureActionScheduler| 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 | |
ScheduledBehavior(CreatureActionScheduler scheduler,
javax.media.j3d.Alpha duration)
Constructor for subclasses. |
|
| Method Summary | |
protected void |
finishAction()
Should be called by subclasses when they want to finish this action (all animations in this action). |
protected void |
finishAnimation()
Should be called by subclasses when they want to finish this animation. |
protected javax.media.j3d.Alpha |
getAlpha()
|
javax.media.j3d.BranchGroup |
getBranchGroup()
Returns the BranchGroup you can add to the scene graph. |
void |
initialize()
Reset the alpha value and call internalInitialize(). |
abstract void |
internalInitialize()
Called when this behavior becomes active. |
| Methods inherited from class javax.media.j3d.Behavior |
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, processStimulus, 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 |
public ScheduledBehavior(CreatureActionScheduler scheduler,
javax.media.j3d.Alpha duration)
scheduler - The scheduler that must be notified when this animation wants to finish itself or the action.duration - The alpha value for the time. Is reset when initialize is called. That is why subclasses don't use initialize() but internalInitialize().| Method Detail |
public final void initialize()
public abstract void internalInitialize()
protected final void finishAnimation()
protected final void finishAction()
public javax.media.j3d.BranchGroup getBranchGroup()
protected javax.media.j3d.Alpha getAlpha()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||