public abstract class BasicGameScreen extends java.lang.Object implements GameScreen
GameScreen
for quick setupConstructor and Description |
---|
BasicGameScreen() |
Modifier and Type | Method and Description |
---|---|
void |
onPause()
Called when the game window is no longer active or visible.
|
void |
onResize(int width,
int height)
Called when the game window's dimensions changes.
|
void |
onResume()
Called when the game window becomes active or visible again
|
void |
postTransitionIn(Transition transitionIn)
Called after the transition in
|
void |
postTransitionOut(Transition transitionOut)
Called after the transition out
|
void |
preTransitionIn(Transition transitionIn)
Called before the transition in
|
void |
preTransitionOut(Transition transitionOut)
Called before the transition out
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, initialise, interpolate, render, update
public void onResize(int width, int height)
GameScreen
onResize
in interface GameScreen
width
- The new game window widthheight
- The new game window heightpublic void onPause()
GameScreen
onPause
in interface GameScreen
public void onResume()
GameScreen
onResume
in interface GameScreen
public void preTransitionIn(Transition transitionIn)
GameScreen
preTransitionIn
in interface GameScreen
transitionIn
- The Transition
in to this screenpublic void postTransitionIn(Transition transitionIn)
GameScreen
postTransitionIn
in interface GameScreen
transitionIn
- The Transition
in to this screenpublic void preTransitionOut(Transition transitionOut)
GameScreen
preTransitionOut
in interface GameScreen
transitionOut
- The Transition
out from this screenpublic void postTransitionOut(Transition transitionOut)
GameScreen
postTransitionOut
in interface GameScreen
transitionOut
- The Transition
out from this screen