public abstract class GameWrapper extends java.lang.Object implements ApplicationListener
Game
for launching mini2Dx gamesConstructor and Description |
---|
GameWrapper(GameContainer gc,
java.lang.String gameIdentifier)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
create() |
protected Graphics |
createGraphicsContext() |
void |
dispose() |
abstract void |
initialise(java.lang.String gameIdentifier) |
void |
interpolate(float alpha)
Called when the
Application should interpolate itself. |
abstract boolean |
isGameWindowReady()
Returns if the game window is initialised natively
|
void |
pause() |
void |
render() |
void |
resize(int width,
int height) |
void |
resume() |
void |
update(float delta)
Called when the
Application should update itself. |
public GameWrapper(GameContainer gc, java.lang.String gameIdentifier)
gc
- The GameContainer
which implements the developer's gamepublic abstract void initialise(java.lang.String gameIdentifier)
protected Graphics createGraphicsContext()
public void create()
create
in interface com.badlogic.gdx.ApplicationListener
public void resize(int width, int height)
resize
in interface com.badlogic.gdx.ApplicationListener
public void update(float delta)
ApplicationListener
Application
should update itself.public void interpolate(float alpha)
ApplicationListener
Application
should interpolate itself.public void render()
render
in interface com.badlogic.gdx.ApplicationListener
public void pause()
pause
in interface com.badlogic.gdx.ApplicationListener
public void resume()
resume
in interface com.badlogic.gdx.ApplicationListener
public void dispose()
dispose
in interface com.badlogic.gdx.ApplicationListener
public abstract boolean isGameWindowReady()