Interface Animation

  • All Superinterfaces:
    be.yildizgames.common.frame.FrameListener
    All Known Implementing Classes:
    Explosion, TeleportAnimation

    public interface Animation
    extends be.yildizgames.common.frame.FrameListener
    An animation will run during a given time at a given position.
    Author:
    Grégory Van den Borre
    • 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:
        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.
      • isPlaying

        boolean isPlaying()
      • isNotPlaying

        default boolean isNotPlaying()