public abstract class GameWrapper extends java.lang.Object implements ApplicationListener
Game for launching mini2Dx games| Constructor 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.ApplicationListenerpublic void resize(int width,
int height)
resize in interface com.badlogic.gdx.ApplicationListenerpublic void update(float delta)
ApplicationListenerApplication should update itself.public void interpolate(float alpha)
ApplicationListenerApplication should interpolate itself.public void render()
render in interface com.badlogic.gdx.ApplicationListenerpublic void pause()
pause in interface com.badlogic.gdx.ApplicationListenerpublic void resume()
resume in interface com.badlogic.gdx.ApplicationListenerpublic void dispose()
dispose in interface com.badlogic.gdx.ApplicationListenerpublic abstract boolean isGameWindowReady()