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() |
protected GraphicsUtils |
createGraphicsUtils() |
void |
dispose() |
static Platform |
getPlatform() |
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 |
preUpdate(float delta)
Called before the
Application should update itself. |
void |
preUpdatePhysics(float delta)
Called before the
Application should update its physics. |
void |
render() |
void |
resize(int width,
int height) |
void |
resume() |
void |
update(float delta)
Called when the
Application should update itself. |
void |
updatePhysics(float delta)
Called when the
Application should update its physics. |
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
protected GraphicsUtils createGraphicsUtils()
public void resize(int width, int height)
resize
in interface com.badlogic.gdx.ApplicationListener
public void preUpdate(float delta)
ApplicationListener
Application
should update itself.public void preUpdatePhysics(float delta)
ApplicationListener
Application
should update its physics.public void update(float delta)
ApplicationListener
Application
should update itself.public void updatePhysics(float delta)
ApplicationListener
Application
should update its physics.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()
public static Platform getPlatform()