Class RotationImageEffect
java.lang.Object
de.gurkenlabs.litiengine.graphics.ImageEffect
de.gurkenlabs.litiengine.graphics.RotationImageEffect
- All Implemented Interfaces:
ITimeToLive
,java.lang.Comparable<ImageEffect>
- Direct Known Subclasses:
EntityRotationImageEffect
public class RotationImageEffect
extends ImageEffect
Constructor Summary
Constructors Constructor Description RotationImageEffect(int ttl, float angle)
Initializes a new instance of theRotationImageEffect
.Method Summary
Methods inherited from class de.gurkenlabs.litiengine.graphics.ImageEffect
compareTo, getAliveTime, getName, getPriority, getTimeToLive, setName, setPriority, timeToLiveReached
Constructor Details
RotationImageEffect
public RotationImageEffect(int ttl, float angle)Initializes a new instance of theRotationImageEffect
.- Parameters:
ttl
- The time to live of this effect.angle
- The angle by which this effect rotates the base image.
Method Details
apply
public java.awt.image.BufferedImage apply(java.awt.image.BufferedImage image)- Specified by:
apply
in classImageEffect
getAngle
public double getAngle()