public class HeadlessMini2DxGame
extends java.lang.Object
implements com.badlogic.gdx.Application
Modifier and Type | Field and Description |
---|---|
protected com.badlogic.gdx.ApplicationLogger |
applicationLogger |
protected com.badlogic.gdx.backends.headless.mock.audio.MockAudio |
audio |
protected HeadlessMini2DxConfig |
config |
protected com.badlogic.gdx.utils.Array<java.lang.Runnable> |
executedRunnables |
protected com.badlogic.gdx.backends.headless.HeadlessFiles |
files |
protected Mini2DxMockGraphics |
graphics |
protected com.badlogic.gdx.backends.headless.mock.input.MockInput |
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.headless.HeadlessNet |
net |
protected java.lang.String |
preferencesdir |
protected com.badlogic.gdx.utils.Array<java.lang.Runnable> |
runnables |
protected boolean |
running |
Constructor and Description |
---|
HeadlessMini2DxGame(GameContainer game,
HeadlessMini2DxConfig config) |
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.Graphics |
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() |
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 HeadlessMini2DxConfig config
protected final Mini2DxMockGraphics graphics
protected com.badlogic.gdx.backends.headless.mock.audio.MockAudio audio
protected final com.badlogic.gdx.backends.headless.HeadlessFiles files
protected final com.badlogic.gdx.backends.headless.mock.input.MockInput input
protected final com.badlogic.gdx.backends.headless.HeadlessNet 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 HeadlessMini2DxGame(GameContainer game, HeadlessMini2DxConfig config)
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.Graphics 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