Class AnimationContext
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.api.animatedblock.AnimationContext
Contains the context in which an animation takes place. For example, the structure that is being animated.
-
Constructor Summary
ConstructorsConstructorDescriptionAnimationContext(StructureType structureType, StructureSnapshot structureSnapshot, Animation<? extends IAnimatedBlock> animation) Creates a newAnimationContextinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAnimation<? extends IAnimatedBlock> The current progress of the animation.A snapshot of the structure being animated, created before the movement started.The type of structure being animated.inthashCode()toString()
-
Constructor Details
-
AnimationContext
public AnimationContext(StructureType structureType, StructureSnapshot structureSnapshot, Animation<? extends IAnimatedBlock> animation) Creates a newAnimationContextinstance.- Parameters:
structureType- The type of structure being animated.structureSnapshot- A snapshot of the structure being animated, created before the movement started.animation- The current progress of the animation.
-
-
Method Details
-
getStructureType
The type of structure being animated. -
getStructureSnapshot
A snapshot of the structure being animated, created before the movement started. -
getAnimation
The current progress of the animation. -
equals
-
hashCode
public int hashCode() -
toString
-