Class Animation
java.lang.Object
itumulator.display.animation.components.Animation
- All Implemented Interfaces:
Comparable<Animation>
- Direct Known Subclasses:
AppearAnimation
,DayNightAnimation
,HideAnimation
,MoveAnimation
,StillAnimation
An abstract representation of an animation which produces individual draw actions (
AnimationFrame
).-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected int
protected Location
protected ObjectInformation
protected boolean
-
Constructor Summary
ConstructorsConstructorDescriptionAnimation
(ObjectInformation oi, Location location, int animationLength) Animation
(ObjectInformation oi, Location location, int animationLength, boolean overrideSort) -
Method Summary
Modifier and TypeMethodDescriptionint
Compare order according to nonBlocking nature of objects.protected abstract AnimationFrame
getFrame
(int index) next()
-
Field Details
-
oi
-
location
-
frameCount
protected int frameCount -
animationLength
protected int animationLength -
overrideSort
protected boolean overrideSort
-
-
Constructor Details
-
Animation
public Animation(ObjectInformation oi, Location location, int animationLength, boolean overrideSort) -
Animation
-
-
Method Details
-
getLocation
-
next
-
compareTo
Compare order according to nonBlocking nature of objects.- Specified by:
compareTo
in interfaceComparable<Animation>
-
getFrame
-