Class RotationImageEffect
java.lang.Object
de.gurkenlabs.litiengine.graphics.ImageEffect
de.gurkenlabs.litiengine.graphics.RotationImageEffect
- All Implemented Interfaces:
ITimeToLive,Comparable<ImageEffect>
- Direct Known Subclasses:
EntityRotationImageEffect
-
Constructor Summary
ConstructorsConstructorDescriptionRotationImageEffect(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
- Specified by:
applyin classImageEffect
-
getAngle
public double getAngle()
-