public class DesktopMini2DxGame
extends java.lang.Object
implements com.badlogic.gdx.Application
Modifier and Type | Field and Description |
---|---|
protected com.badlogic.gdx.ApplicationLogger |
applicationLogger |
protected Mini2DxAudio |
audio |
protected DesktopMini2DxConfig |
config |
protected com.badlogic.gdx.utils.Array<java.lang.Runnable> |
executedRunnables |
protected com.badlogic.gdx.backends.lwjgl.LwjglFiles |
files |
protected com.badlogic.gdx.backends.lwjgl.LwjglGraphics |
graphics |
protected com.badlogic.gdx.backends.lwjgl.LwjglInput |
input |
protected com.badlogic.gdx.utils.Array<com.badlogic.gdx.LifecycleListener> |
lifecycleListeners |
protected ApplicationListener |
listener |
protected int |
logLevel |
protected java.lang.Thread |
mainLoopThread |
protected com.badlogic.gdx.backends.lwjgl.LwjglNet |
net |
protected java.lang.String |
preferencesdir |
protected com.badlogic.gdx.utils.Array<java.lang.Runnable> |
runnables |
protected boolean |
running |
Constructor and Description |
---|
DesktopMini2DxGame(GameContainer game,
DesktopMini2DxConfig config) |
DesktopMini2DxGame(GameContainer game,
DesktopMini2DxConfig config,
java.awt.Canvas canvas) |
DesktopMini2DxGame(GameContainer game,
DesktopMini2DxConfig config,
com.badlogic.gdx.backends.lwjgl.LwjglGraphics graphics) |
Modifier and Type | Method and Description |
---|---|
void |
addLifecycleListener(com.badlogic.gdx.LifecycleListener listener) |
void |
debug(java.lang.String tag,
java.lang.String message) |
void |
debug(java.lang.String tag,
java.lang.String message,
java.lang.Throwable exception) |
void |
error(java.lang.String tag,
java.lang.String message) |
void |
error(java.lang.String tag,
java.lang.String message,
java.lang.Throwable exception) |
boolean |
executeRunnables() |
void |
exit() |
ApplicationListener |
getApplicationListener() |
com.badlogic.gdx.ApplicationLogger |
getApplicationLogger() |
com.badlogic.gdx.Audio |
getAudio() |
com.badlogic.gdx.utils.Clipboard |
getClipboard() |
com.badlogic.gdx.Files |
getFiles() |
com.badlogic.gdx.backends.lwjgl.LwjglGraphics |
getGraphics() |
com.badlogic.gdx.Input |
getInput() |
long |
getJavaHeap() |
int |
getLogLevel() |
long |
getNativeHeap() |
com.badlogic.gdx.Net |
getNet() |
com.badlogic.gdx.Preferences |
getPreferences(java.lang.String name) |
com.badlogic.gdx.Application.ApplicationType |
getType() |
int |
getVersion() |
protected void |
initialiseLibGDX() |
void |
log(java.lang.String tag,
java.lang.String message) |
void |
log(java.lang.String tag,
java.lang.String message,
java.lang.Throwable exception) |
void |
postRunnable(java.lang.Runnable runnable) |
void |
removeLifecycleListener(com.badlogic.gdx.LifecycleListener listener) |
void |
setApplicationLogger(com.badlogic.gdx.ApplicationLogger applicationLogger) |
void |
setLogLevel(int logLevel) |
void |
stop() |
protected final DesktopMini2DxConfig config
protected final com.badlogic.gdx.backends.lwjgl.LwjglGraphics graphics
protected Mini2DxAudio audio
protected final com.badlogic.gdx.backends.lwjgl.LwjglFiles files
protected final com.badlogic.gdx.backends.lwjgl.LwjglInput input
protected final com.badlogic.gdx.backends.lwjgl.LwjglNet net
protected final ApplicationListener listener
protected java.lang.Thread mainLoopThread
protected boolean running
protected final com.badlogic.gdx.utils.Array<java.lang.Runnable> runnables
protected final com.badlogic.gdx.utils.Array<java.lang.Runnable> executedRunnables
protected final com.badlogic.gdx.utils.Array<com.badlogic.gdx.LifecycleListener> lifecycleListeners
protected int logLevel
protected com.badlogic.gdx.ApplicationLogger applicationLogger
protected java.lang.String preferencesdir
public DesktopMini2DxGame(GameContainer game, DesktopMini2DxConfig config)
public DesktopMini2DxGame(GameContainer game, DesktopMini2DxConfig config, java.awt.Canvas canvas)
public DesktopMini2DxGame(GameContainer game, DesktopMini2DxConfig config, com.badlogic.gdx.backends.lwjgl.LwjglGraphics graphics)
protected void initialiseLibGDX()
public boolean executeRunnables()
public ApplicationListener getApplicationListener()
getApplicationListener
in interface com.badlogic.gdx.Application
public com.badlogic.gdx.Audio getAudio()
getAudio
in interface com.badlogic.gdx.Application
public com.badlogic.gdx.Files getFiles()
getFiles
in interface com.badlogic.gdx.Application
public com.badlogic.gdx.backends.lwjgl.LwjglGraphics getGraphics()
getGraphics
in interface com.badlogic.gdx.Application
public com.badlogic.gdx.Input getInput()
getInput
in interface com.badlogic.gdx.Application
public com.badlogic.gdx.Net getNet()
getNet
in interface com.badlogic.gdx.Application
public com.badlogic.gdx.Application.ApplicationType getType()
getType
in interface com.badlogic.gdx.Application
public int getVersion()
getVersion
in interface com.badlogic.gdx.Application
public void stop()
public long getJavaHeap()
getJavaHeap
in interface com.badlogic.gdx.Application
public long getNativeHeap()
getNativeHeap
in interface com.badlogic.gdx.Application
public com.badlogic.gdx.Preferences getPreferences(java.lang.String name)
getPreferences
in interface com.badlogic.gdx.Application
public com.badlogic.gdx.utils.Clipboard getClipboard()
getClipboard
in interface com.badlogic.gdx.Application
public void postRunnable(java.lang.Runnable runnable)
postRunnable
in interface com.badlogic.gdx.Application
public void debug(java.lang.String tag, java.lang.String message)
debug
in interface com.badlogic.gdx.Application
public void debug(java.lang.String tag, java.lang.String message, java.lang.Throwable exception)
debug
in interface com.badlogic.gdx.Application
public void log(java.lang.String tag, java.lang.String message)
log
in interface com.badlogic.gdx.Application
public void log(java.lang.String tag, java.lang.String message, java.lang.Throwable exception)
log
in interface com.badlogic.gdx.Application
public void error(java.lang.String tag, java.lang.String message)
error
in interface com.badlogic.gdx.Application
public void error(java.lang.String tag, java.lang.String message, java.lang.Throwable exception)
error
in interface com.badlogic.gdx.Application
public void setLogLevel(int logLevel)
setLogLevel
in interface com.badlogic.gdx.Application
public int getLogLevel()
getLogLevel
in interface com.badlogic.gdx.Application
public void setApplicationLogger(com.badlogic.gdx.ApplicationLogger applicationLogger)
setApplicationLogger
in interface com.badlogic.gdx.Application
public com.badlogic.gdx.ApplicationLogger getApplicationLogger()
getApplicationLogger
in interface com.badlogic.gdx.Application
public void exit()
exit
in interface com.badlogic.gdx.Application
public void addLifecycleListener(com.badlogic.gdx.LifecycleListener listener)
addLifecycleListener
in interface com.badlogic.gdx.Application
public void removeLifecycleListener(com.badlogic.gdx.LifecycleListener listener)
removeLifecycleListener
in interface com.badlogic.gdx.Application