Class Explosion

  • All Implemented Interfaces:
    be.yildizgames.common.frame.FrameListener, Animation

    public final class Explosion
    extends be.yildizgames.common.frame.EndFrameListener
    implements Animation
    Explosion animation.
    Author:
    Grégory Van den Borre
    • Method Detail

      • setPosition

        public void setPosition​(be.yildizgames.common.geometry.Point3D position)
        Set explosion position.
        Specified by:
        setPosition in interface Animation
        Parameters:
        position - New position.
      • start

        public void start()
        Description copied from interface: Animation
        Start playing the animation.
        Specified by:
        start in interface Animation
      • frameEnded

        public boolean frameEnded​(long time)
        Specified by:
        frameEnded in interface Animation
        Specified by:
        frameEnded in interface be.yildizgames.common.frame.FrameListener
        Parameters:
        time - Time since last frame in milliseconds.
        Returns:
        true if the animation is running, false if completed.