public abstract class FXGLApplication
extends javafx.application.Application
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
log
Use system logger fallback until actual logger is ready.
|
| Constructor and Description |
|---|
FXGLApplication() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFXGLListener(FXGLListener listener)
Add listener for core FXGL callbacks.
|
protected void |
exit()
Exit the application.
|
AchievementManager |
getAchievementManager() |
javafx.geometry.Rectangle2D |
getAppBounds() |
AssetLoader |
getAssetLoader() |
AudioPlayer |
getAudioPlayer() |
Display |
getDisplay() |
EventBus |
getEventBus() |
ExceptionHandler |
getExceptionHandler() |
Executor |
getExecutor() |
int |
getHeight() |
Input |
getInput() |
MasterTimer |
getMasterTimer() |
Net |
getNet() |
NotificationService |
getNotificationService() |
long |
getNow() |
javafx.stage.Stage |
getPrimaryStage() |
QTE |
getQTE() |
QuestService |
getQuestService() |
ReadOnlyGameSettings |
getSettings() |
long |
getTick() |
UIFactory |
getUIFactory() |
int |
getWidth() |
void |
init() |
protected abstract void |
initSettings(GameSettings settings)
Initialize app settings.
|
protected void |
pause()
Pause the application.
|
void |
removeFXGLListener(FXGLListener listener)
Remove previously added listener.
|
protected void |
reset()
Reset the application.
|
protected void |
resume()
Resume the application.
|
void |
start(javafx.stage.Stage primaryStage) |
void |
stop() |
protected static Logger log
public final javafx.stage.Stage getPrimaryStage()
public final ReadOnlyGameSettings getSettings()
public final void addFXGLListener(FXGLListener listener)
listener - the listenerpublic final void removeFXGLListener(FXGLListener listener)
listener - the listenerpublic final void init()
throws Exception
init in class javafx.application.ApplicationExceptionpublic final void start(javafx.stage.Stage primaryStage)
throws Exception
start in class javafx.application.ApplicationExceptionpublic final void stop()
stop in class javafx.application.Applicationprotected final void pause()
protected final void resume()
protected final void reset()
System.gc() will be called.protected final void exit()
protected abstract void initSettings(GameSettings settings)
settings - app settingspublic final int getWidth()
public final int getHeight()
public final javafx.geometry.Rectangle2D getAppBounds()
public final long getTick()
public final long getNow()
public final EventBus getEventBus()
public final Display getDisplay()
public final Input getInput()
public final AudioPlayer getAudioPlayer()
public final AssetLoader getAssetLoader()
public final MasterTimer getMasterTimer()
public final Executor getExecutor()
public final NotificationService getNotificationService()
public final AchievementManager getAchievementManager()
public final QTE getQTE()
public final Net getNet()
public final ExceptionHandler getExceptionHandler()
public final UIFactory getUIFactory()
public final QuestService getQuestService()
Copyright © 2017. All rights reserved.