- java.lang.Object
-
- be.yildizgames.common.frame.BaseFrameListener
-
- be.yildizgames.common.frame.EndFrameListener
-
- be.yildizgames.module.graphic.misc.Explosion
-
-
Constructor Summary
Constructors Constructor Description Explosion(ParticleSystem smoke1, ParticleSystem smoke2, ParticleSystem flash, ParticleSystem spark)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 explosion 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
-
Explosion
public Explosion(ParticleSystem smoke1, ParticleSystem smoke2, ParticleSystem flash, ParticleSystem spark)
Full constructor.- Parameters:
smoke1- Smoke 1.smoke2- Smoke 2.flash- Flash.spark- Spark.
-
-
Method Detail
-
setPosition
public void setPosition(be.yildizgames.common.geometry.Point3D position)
Set explosion position.- Specified by:
setPositionin interfaceAnimation- Parameters:
position- New position.
-
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.
-
-