Interface Animation
-
- All Superinterfaces:
be.yildizgames.common.frame.FrameListener
- All Known Implementing Classes:
Explosion,TeleportAnimation
public interface Animation extends be.yildizgames.common.frame.FrameListenerAn animation will run during a given time at a given position.- Author:
- Grégory Van den Borre
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanframeEnded(long time)default booleanisNotPlaying()booleanisPlaying()voidsetPosition(be.yildizgames.common.geometry.Point3D position)Set the animation position.voidstart()Start playing the animation.default AnimationstartAtPosition(be.yildizgames.common.geometry.Point3D position)
-
-
-
Method Detail
-
start
void start()
Start playing the animation.
-
setPosition
void setPosition(be.yildizgames.common.geometry.Point3D position)
Set the animation position.- Parameters:
position- Animation position.
-
startAtPosition
default Animation startAtPosition(be.yildizgames.common.geometry.Point3D position)
-
frameEnded
boolean frameEnded(long time)
- Specified by:
frameEndedin interfacebe.yildizgames.common.frame.FrameListener- Parameters:
time- Time since last frame in milliseconds.- Returns:
trueif the animation is running,falseif completed.
-
isPlaying
boolean isPlaying()
-
isNotPlaying
default boolean isNotPlaying()
-
-