public abstract class GameContainer extends Object implements com.badlogic.gdx.Screen
Constructor and Description |
---|
GameContainer() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
int |
getHeight() |
int |
getWidth() |
void |
hide() |
abstract void |
initialise()
Initialse the game
|
protected void |
postinit()
Internal post-initialisation code
|
protected void |
preinit()
Internal pre-initialisation code
|
void |
render(float delta) |
abstract void |
render(Graphics g)
Render the game
|
void |
resize(int width,
int height) |
void |
show() |
abstract void |
update(float delta)
Update the game
|
public abstract void initialise()
public abstract void update(float delta)
delta
- The time in seconds since the last updatepublic abstract void render(Graphics g)
g
- The Graphics
context available for renderingpublic void render(float delta)
render
in interface com.badlogic.gdx.Screen
public void resize(int width, int height)
resize
in interface com.badlogic.gdx.Screen
protected void preinit()
protected void postinit()
public void show()
show
in interface com.badlogic.gdx.Screen
public void dispose()
dispose
in interface com.badlogic.gdx.Screen
public void hide()
hide
in interface com.badlogic.gdx.Screen
public int getWidth()
public int getHeight()
Copyright © 2014. All rights reserved.