public class GameScreen extends Screen
Modifier and Type | Class and Description |
---|---|
class |
GameScreen.GameListener
Listens to any events delegated by the World pertinent to the game.
|
static class |
GameScreen.GameState |
class |
GameScreen.UiListener
Listens to any event that occurs in the HUD of the game.
|
Constructor and Description |
---|
GameScreen(com.jonathan.survivor.Survivor game,
Profile profile)
Creates a game screen.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called when the application closes, or when the user leaves the screen.
|
void |
pause()
Called when the application is left on Android or when the game is exitted.
|
void |
pauseGame(GameScreen.GameState newState)
Pauses the game whilst running.
|
void |
pauseInput()
Pauses the game by pausing all of the input handling.
|
void |
render(float deltaTime)
Called every frame to update game logic or draw graphics to the screen
|
void |
resize(int width,
int height) |
void |
resume() |
void |
resumeGame()
Resumes the game to its previous state before being paused.
|
void |
resumeInput()
Resumes the game by allowing the input managers to delegate method calls to the world.
|
void |
show() |
public GameScreen(com.jonathan.survivor.Survivor game, Profile profile)
public void render(float deltaTime)
Screen
public void pauseGame(GameScreen.GameState newState)
public void resumeGame()
public void pauseInput()
public void resumeInput()
public void show()
public void pause()
public void resume()
public void dispose()