public interface Screen
extends com.badlogic.gdx.utils.Disposable
| Modifier and Type | Method and Description |
|---|---|
Content |
getContent() |
void |
onActivate(ScreenId predecessor)
Will be called when the screen gets set active.
|
void |
onAdd(com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch batch,
com.badlogic.gdx.InputMultiplexer inputMultiplexer,
java.util.Map<java.lang.String,java.lang.Object> dependencyMap)
Will be called when the screen gets added to a screen switch.
|
float |
onDeactivate(ScreenId successor)
Will be called when the screen gets set inactive.
|
void |
onPause()
Will always be called on pause when the screen has been added to the screen switch.
|
void |
onRender()
Will be called on render when the screen is active.
|
void |
onResize(int width,
int height)
Will be called on resize when the screen is active.
|
void |
onResume()
Will always be called on resume when the screen has been added to the screen switch.
|
void |
onUpdate()
Will be called on update when the screen is active.
|
void |
setInTransition(Transition transition)
Sets a transition which will determine the animation when the screen gets activated.
|
void |
setOutTransition(Transition transition)
Sets a transition which will determine the animation when the screen gets deactivated.
|
void setOutTransition(Transition transition)
transition - the transitionvoid setInTransition(Transition transition)
transition - the transitionvoid onAdd(com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch batch,
com.badlogic.gdx.InputMultiplexer inputMultiplexer,
java.util.Map<java.lang.String,java.lang.Object> dependencyMap)
batch - batch of the screen switchvoid onActivate(ScreenId predecessor)
predecessor - predecessor of the screenfloat onDeactivate(ScreenId successor)
successor - successor of the screenvoid onResize(int width,
int height)
width - width of the frameheight - height of the framevoid onUpdate()
void onRender()
void onPause()
void onResume()
Content getContent()