public abstract class AbstractAnimationScreen
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
AbstractAnimationScreen.Size
A size structure with Width and Height property.
|
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<IAnimation> |
animations |
private static IAnimation.AnimationType[] |
animationTypes |
private java.util.ArrayList<IAnimation> |
queueAnimations |
Constructor and Description |
---|
AbstractAnimationScreen() |
Modifier and Type | Method and Description |
---|---|
void |
addAnimation(IAnimation animation)
Add a new animation to current Screen.
|
protected abstract com.badlogic.gdx.graphics.g2d.Batch |
getBatch() |
abstract AbstractAnimationScreen.Size |
getScreenSize()
The screen size.
|
void |
renderAnimation(float delta)
Request to render all animation registered.
|
void |
renderAnimation(float delta,
IAnimation.AnimationType type)
Request to render animation.
|
private final java.util.ArrayList<IAnimation> animations
private final java.util.ArrayList<IAnimation> queueAnimations
private static IAnimation.AnimationType[] animationTypes
protected abstract com.badlogic.gdx.graphics.g2d.Batch getBatch()
public void addAnimation(IAnimation animation)
animation
- The animation to be added.public void renderAnimation(float delta, IAnimation.AnimationType type)
delta
- Time delta from last render call.type
- The animation type to render.public void renderAnimation(float delta)
delta
- Time delta from last render call.public abstract AbstractAnimationScreen.Size getScreenSize()