Class TeleportAnimation

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

    public final class TeleportAnimation
    extends be.yildizgames.common.frame.EndFrameListener
    implements Animation
    Animation to play when an entity is making a teleportation.
    Author:
    Grégory Van den Borre
    • 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: 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.
      • setPosition

        public void setPosition​(be.yildizgames.common.geometry.Point3D position)
        Description copied from interface: Animation
        Set the animation position.
        Specified by:
        setPosition in interface Animation
        Parameters:
        position - Animation position.