com.annahid.libs.artenus.entities.behavior
Animatable
Interface for all entities that can be animated. Sprites all implement this behavior.
See Also:
public interface Animatable
Method Summary
Modifier and Type | Method and Description |
---|---|
public void | advance(float elapsedTime) Advances the animation for this animatable. |
public AnimationHandler | getAnimation() Gets the animation handler currently affecting this animatable. |
public void | setAnimation(AnimationHandler animation) Assigns an animation handler to handle animations for this animatable. |
Method Detail
advance | ||
---|---|---|
public void advance( float elapsedTime ) Advances the animation for this animatable. This method is called once per animation frame. Parameters:
|
getAnimation |
---|
public AnimationHandler getAnimation() Gets the animation handler currently affecting this animatable. Returns:
Animation handler |
setAnimation | ||
---|---|---|
public void setAnimation( AnimationHandler animation ) Assigns an animation handler to handle animations for this animatable. Parameters:
|