public interface IEntityAnimationController extends IAnimationController, IEntityController
| Modifier and Type | Method and Description |
|---|---|
void |
addAnimationRule(java.util.function.Predicate<IEntity> rule,
java.util.function.Function<IEntity,java.lang.String> animationName)
Registers an animation rule that will be evaluated if there is currently no
animation playing that is defined to loop.
|
boolean |
isAutoScaling() |
void |
scaleSprite(float scale) |
void |
scaleSprite(float scaleX,
float scaleY) |
void |
setAutoScaling(boolean scaling) |
add, add, getAffineTransform, getAnimation, getAnimations, getCurrentAnimation, getCurrentSprite, getCurrentSprite, getDefaultAnimation, getImageEffects, hasAnimation, isPlaying, onPlayback, onPlaybackEnded, playAnimation, remove, remove, setAffineTransform, setDefaultAnimationattach, detachupdategetEntityvoid addAnimationRule(java.util.function.Predicate<IEntity> rule, java.util.function.Function<IEntity,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
appliedboolean isAutoScaling()
void setAutoScaling(boolean scaling)
void scaleSprite(float scaleX,
float scaleY)
void scaleSprite(float scale)