Class AnimatedIntProperty
java.lang.Object
dev.prozilla.pine.common.property.animated.AnimatedProperty<Integer>
dev.prozilla.pine.common.property.animated.AnimatedIntProperty
- All Implemented Interfaces:
Updatable,AnimatedPropertyBase<Integer>,IntProperty,NonNullProperty<Integer>,Property<Integer>,Functor<Integer>
- Direct Known Subclasses:
TransitionedIntProperty
-
Field Summary
FieldsFields inherited from class dev.prozilla.pine.common.property.animated.AnimatedProperty
curve, time -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintget()Returns the primitive value of this property.intRestarts the animation and returns the current value.intgetUpdated(float deltaTime) Updates the animation and returns the current value.Methods inherited from class dev.prozilla.pine.common.property.animated.AnimatedProperty
getCurve, getFactor, hasFinished, restart, setDuration, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.prozilla.pine.common.property.animated.AnimatedPropertyBase
getRestartedValue, getUpdatedValueMethods inherited from interface dev.prozilla.pine.common.property.IntProperty
getValue, getValueOr, has, hasProperty, isZeroProperty, map, replaceNull, requireValueMethods inherited from interface dev.prozilla.pine.common.property.NonNullProperty
isNotNull, isNotNullPropertyMethods inherited from interface dev.prozilla.pine.common.property.Property
hasValue, hasValueProperty, isNull, map, snapshot, toStringProperty
-
Field Details
-
start
protected int start -
end
protected int end
-
-
Constructor Details
-
AnimatedIntProperty
-
-
Method Details
-
getRestarted
public int getRestarted()Restarts the animation and returns the current value. -
getUpdated
public int getUpdated(float deltaTime) Updates the animation and returns the current value.- Parameters:
deltaTime- Delta time in seconds.
-
get
public int get()Description copied from interface:IntPropertyReturns the primitive value of this property.- Specified by:
getin interfaceIntProperty- Returns:
- The primitive value of this property.
-