org.xith3d.loop.opscheduler
Interface Animatable

All Superinterfaces:
ScheduledOperation, Updatable
All Known Implementing Classes:
AnimatableGroup, Bullet, BunchAnimatable, GroupAnimator, GroupRotator, GroupTranslator, RotatableGroup, TranslatableGroup

public interface Animatable
extends ScheduledOperation

This interface can be used for objects to be automatically beeing animated by the render loop. See RotatableGroup for an example on how to use it.


Method Summary
 boolean isAnimating()
           
 void startAnimation(long gameTime, UpdatingThread.TimingMode timingMode)
          Starts the animation of this object.
 void stopAnimation()
          Stops the animation of this object.
 
Methods inherited from interface org.xith3d.loop.opscheduler.ScheduledOperation
isAlive, isPersistent, setAlive
 
Methods inherited from interface org.xith3d.loop.Updatable
update
 

Method Detail

isAnimating

boolean isAnimating()
Returns:
is this object's animation running

startAnimation

void startAnimation(long gameTime,
                    UpdatingThread.TimingMode timingMode)
Starts the animation of this object.


stopAnimation

void stopAnimation()
Stops the animation of this object.