public abstract class BaseTransition extends java.lang.Object implements Transition
| Modifier and Type | Field and Description |
|---|---|
protected Modifier |
animationModifier
Underlying interpolating modifier
|
protected ScreenContext |
context
Context of the screen which executes this transition
|
protected float |
duration
Duration of the transition
|
| Constructor and Description |
|---|
BaseTransition(float duration)
Creates a base transition with the given duration.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getDuration() |
boolean |
hasFinished() |
protected abstract void |
init()
Called after every reset.
|
void |
postRender(com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch batch) |
void |
preRender(com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch batch) |
void |
reset(ScreenContext context) |
void |
update() |
protected float duration
protected Modifier animationModifier
protected ScreenContext context
public BaseTransition(float duration)
duration - duration of the transitionprotected abstract void init()
public void preRender(com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch batch)
preRender in interface Transitionpublic void postRender(com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch batch)
postRender in interface Transitionpublic void update()
update in interface Transitionpublic float getDuration()
getDuration in interface Transitionpublic boolean hasFinished()
hasFinished in interface Transitionpublic void reset(ScreenContext context)
reset in interface Transition