|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.loop.opscheduler.impl.BunchAnimatable
public class BunchAnimatable
This is an Animatable implementation, that animates a list of
Animatables at once.
| Constructor Summary | |
|---|---|
BunchAnimatable()
Creates a new persistent BunchAnimatable. |
|
BunchAnimatable(boolean persistent)
Creates a new BunchAnimatable. |
|
BunchAnimatable(boolean persistent,
Animatable[] subAnims)
Creates a new BunchAnimatable. |
|
BunchAnimatable(boolean persistent,
java.util.List<Animatable> subAnims)
Creates a new BunchAnimatable. |
|
| Method Summary | |
|---|---|
void |
addAnimatable(Animatable animatable)
Adds an Animatable to the list of managed items. |
java.util.ArrayList<Animatable> |
getAnimatables()
|
boolean |
isAlive()
if false, the object will be removed from the scheduler next loop iteration |
boolean |
isAnimating()
|
boolean |
isPersistent()
If this operation is persistent, it remains scheduled after beeing executed once. |
boolean |
removeAnimatable(Animatable animatable)
Removes an Animatable from the list of managed items. |
void |
setAlive(boolean alive)
Sets this Object alive or dead |
void |
startAnimation(long gameTime,
UpdatingThread.TimingMode timingMode)
Starts the animation of this object. |
void |
stopAnimation()
Stops the animation of this object. |
void |
update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updates this Updatable object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BunchAnimatable(boolean persistent,
java.util.List<Animatable> subAnims)
persistent - see isPersistent()subAnims - the new list of sub-Animatables
public BunchAnimatable(boolean persistent,
Animatable[] subAnims)
persistent - see isPersistent()subAnims - the new list of sub-Animatablespublic BunchAnimatable(boolean persistent)
persistent - see isPersistent()public BunchAnimatable()
| Method Detail |
|---|
public boolean isPersistent()
isPersistent in interface ScheduledOperationpublic void setAlive(boolean alive)
setAlive in interface ScheduledOperationalive - if false, the object will be removed from the scheduler next loop iterationpublic boolean isAlive()
isAlive in interface ScheduledOperation
public void startAnimation(long gameTime,
UpdatingThread.TimingMode timingMode)
startAnimation in interface Animatablepublic void stopAnimation()
stopAnimation in interface Animatablepublic boolean isAnimating()
isAnimating in interface Animatablepublic final void addAnimatable(Animatable animatable)
Animatable to the list of managed items.
animatable - public final boolean removeAnimatable(Animatable animatable)
Animatable from the list of managed items.
animatable - public final java.util.ArrayList<Animatable> getAnimatables()
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
update in interface UpdatablegameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||