public abstract class GameWrapper extends java.lang.Object implements ApplicationListener
Game for launching mini2Dx games| Constructor and Description |
|---|
GameWrapper(org.mini2Dx.core.game.GameContainer gc,
java.lang.String gameIdentifier)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
create() |
protected org.mini2Dx.core.Graphics |
createGraphicsContext() |
protected org.mini2Dx.core.GraphicsUtils |
createGraphicsUtils() |
void |
dispose() |
static org.mini2Dx.core.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(org.mini2Dx.core.game.GameContainer gc,
java.lang.String gameIdentifier)
gc - The GameContainer which implements the developer's gamepublic abstract void initialise(java.lang.String gameIdentifier)
protected org.mini2Dx.core.Graphics createGraphicsContext()
public void create()
create in interface com.badlogic.gdx.ApplicationListenerprotected org.mini2Dx.core.GraphicsUtils createGraphicsUtils()
public void resize(int width,
int height)
resize in interface com.badlogic.gdx.ApplicationListenerpublic void preUpdate(float delta)
ApplicationListenerApplication should update itself.public void preUpdatePhysics(float delta)
ApplicationListenerApplication should update its physics.public void update(float delta)
ApplicationListenerApplication should update itself.public void updatePhysics(float delta)
ApplicationListenerApplication should update its physics.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()
public static org.mini2Dx.core.Platform getPlatform()