Class TeleportAnimation
- java.lang.Object
-
- be.yildizgames.common.frame.BaseFrameListener
-
- be.yildizgames.common.frame.EndFrameListener
-
- be.yildizgames.module.graphic.misc.TeleportAnimation
-
-
Constructor Summary
Constructors Constructor Description TeleportAnimation(BillboardSet set)Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanframeEnded(long time)booleanisPlaying()voidsetPosition(be.yildizgames.common.geometry.Point3D position)Set the animation position.voidstart()Start playing the animation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface be.yildizgames.module.graphic.animation.Animation
isNotPlaying, startAtPosition
-
-
-
-
Constructor Detail
-
TeleportAnimation
public TeleportAnimation(BillboardSet set)
Full constructor.- Parameters:
set- Set to create the billboards for the animation.
-
-
Method Detail
-
start
public void start()
Description copied from interface:AnimationStart playing the animation.
-
frameEnded
public boolean frameEnded(long time)
- Specified by:
frameEndedin interfaceAnimation- Specified by:
frameEndedin interfacebe.yildizgames.common.frame.FrameListener- Parameters:
time- Time since last frame in milliseconds.- Returns:
trueif the animation is running,falseif completed.
-
setPosition
public void setPosition(be.yildizgames.common.geometry.Point3D position)
Description copied from interface:AnimationSet the animation position.- Specified by:
setPositionin interfaceAnimation- Parameters:
position- Animation position.
-
-