Class AnimationFrame

java.lang.Object
de.pirckheimer_gymnasium.engine_pi.animation.AnimationFrame

@Internal public final class AnimationFrame extends Object
Beschreibt einen Frame einer Animation.
Author:
Niklas Keller
  • Constructor Details

    • AnimationFrame

      @Internal public AnimationFrame(BufferedImage image, double duration)
      Erstellt einen Frame.
      Parameters:
      image - Das Bild für den Frame.
      duration - Die Dauer, die dieser Frame aktiv bleibt.
  • Method Details

    • setDuration

      @Internal public void setDuration(double duration)
    • getImage

      @Internal public BufferedImage getImage()
    • getDuration

      @Internal public double getDuration()
    • render

      @Internal public void render(Graphics2D g, double width, double height, boolean flipHorizontal, boolean flipVertical)
      Rendert den Frame (an der entsprechenden Position des Graphics Objekts)
      Parameters:
      g - Das Graphics Objekt