An ApplicationListener that delegates to a Screen. This allows an application to easily have multiple screens.
Screens are not disposed automatically. You must handle whether you want to keep screens around or dispose of them when another screen is set.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements com. Called when the |
| public Screen | |
| public void | pause()
Implements com. Called when the |
| public void | render()
Implements com. Called when the |
| public void | resize(int width, int height)
Implements com. Called when the |
| public void | resume()
Implements com. Called when the |
| public void |
| screen | back to summary |
|---|---|
| protected Screen screen | |
| Game | back to summary |
|---|---|
| public Game() | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Doc from com. Called when the
| |
| getScreen | back to summary |
|---|---|
| public Screen getScreen() | |
| pause | back to summary |
|---|---|
| public void pause() Implements com. Doc from com. Called when the
| |
| render | back to summary |
|---|---|
| public void render() Implements com. Doc from com. Called when the
| |
| resize | back to summary |
|---|---|
| public void resize(int width, int height) Implements com. Doc from com. Called when the
| |
| resume | back to summary |
|---|---|
| public void resume() Implements com. Doc from com. Called when the
| |
| setScreen | back to summary |
|---|---|
| public void setScreen(Screen screen) Sets the current screen.
| |