public interface GameScreen
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Returns the identifier of the screen
|
void |
initialise(GameContainer gc)
Initialises the game screen
|
void |
interpolate(GameContainer gc,
float alpha)
Interpolate between the previous and current state
|
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
|
void |
render(GameContainer gc,
Graphics g)
Renders the game screen
|
void |
update(GameContainer gc,
ScreenManager<? extends GameScreen> screenManager,
float delta)
Updates the game screen
|
void initialise(GameContainer gc)
gc - The GameContainer of the gamevoid update(GameContainer gc, ScreenManager<? extends GameScreen> screenManager, float delta)
gc - The GameContainer of the gamescreenManager - The ScreenManager of the gamedelta - The time in seconds since the last updatevoid interpolate(GameContainer gc, float alpha)
alpha - The interpolation alpha valuevoid render(GameContainer gc, Graphics g)
gc - The GameContainer of the gameg - The Graphics context available for renderingvoid preTransitionIn(Transition transitionIn)
transitionIn - The Transition in to this screenvoid postTransitionIn(Transition transitionIn)
transitionIn - The Transition in to this screenvoid preTransitionOut(Transition transitionOut)
transitionOut - The Transition out from this screenvoid postTransitionOut(Transition transitionOut)
transitionOut - The Transition out from this screenint getId()