Class AnimationFrame
java.lang.Object
de.pirckheimer_gymnasium.engine_pi.animation.AnimationFrame
Beschreibt einen Frame einer
Animation.- Author:
- Niklas Keller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetImage()voidrender(Graphics2D g, double width, double height, boolean flipHorizontal, boolean flipVertical) Rendert den Frame (an der entsprechenden Position des Graphics Objekts)voidsetDuration(double duration)
-
Constructor Details
-
AnimationFrame
Erstellt einen Frame.- Parameters:
image- Das Bild für den Frame.duration- Die Dauer, die dieser Frame aktiv bleibt.
-
-
Method Details
-
setDuration
-
getImage
-
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- DasGraphics2D-Objekt, in das gezeichnet werden soll.
-