public interface IEntityAnimationController<T> extends IAnimationController, IEntityController
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(java.util.function.Predicate<? super T> rule,
java.util.function.Function<? super T,java.lang.String> animationName)
Registers an animation rule that will be evaluated if there is currently no
animation playing that is defined to loop.
|
void |
addRule(java.util.function.Predicate<? super T> rule,
java.util.function.Function<? super T,java.lang.String> animationName,
int priority) |
boolean |
isAutoScaling() |
void |
scaleSprite(float scale) |
void |
scaleSprite(float scaleX,
float scaleY) |
void |
setAutoScaling(boolean scaling) |
add, add, addListener, clear, get, getAffineTransform, getAll, getCurrent, getCurrentSprite, getCurrentSprite, getDefault, getImageEffects, hasAnimation, isEnabled, isPlaying, play, remove, remove, removeListener, setAffineTransform, setDefault, setEnabledattach, detach, getEntityupdatevoid addRule(java.util.function.Predicate<? super T> rule, java.util.function.Function<? super T,java.lang.String> animationName)
rule - The rule that must be fulfilled for the animation to be appliedanimationName - The callback that evaluates the actual animation name that will be
appliedvoid addRule(java.util.function.Predicate<? super T> rule, java.util.function.Function<? super T,java.lang.String> animationName, int priority)
boolean isAutoScaling()
void setAutoScaling(boolean scaling)
void scaleSprite(float scaleX,
float scaleY)
void scaleSprite(float scale)