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 intprotected intprotected Locationprotected ObjectInformationprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionAnimation(ObjectInformation oi, Location location, int animationLength) Animation(ObjectInformation oi, Location location, int animationLength, boolean overrideSort) -
Method Summary
Modifier and TypeMethodDescriptionintCompare order according to nonBlocking nature of objects.protected abstract AnimationFramegetFrame(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:
compareToin interfaceComparable<Animation>
-
getFrame
-