public abstract class FXGLApplication
extends javafx.application.Application
| 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() |
AssetLoader |
getAssetLoader() |
AudioPlayer |
getAudioPlayer() |
Display |
getDisplay() |
EventBus |
getEventBus() |
ExceptionHandler |
getExceptionHandler() |
Executor |
getExecutor() |
double |
getHeight()
Returns target height of the application.
|
Input |
getInput() |
MasterTimer |
getMasterTimer() |
Net |
getNet() |
NotificationService |
getNotificationService() |
long |
getNow() |
javafx.stage.Stage |
getPrimaryStage() |
QTE |
getQTE() |
QuestManager |
getQuestManager() |
javafx.geometry.Rectangle2D |
getScreenBounds()
Returns the visual area within the application window,
excluding window borders.
|
ReadOnlyGameSettings |
getSettings() |
long |
getTick() |
UIFactory |
getUIFactory() |
double |
getWidth()
Returns target width of the application.
|
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() |
public javafx.stage.Stage getPrimaryStage()
public final ReadOnlyGameSettings getSettings()
public void addFXGLListener(FXGLListener listener)
listener - the listenerpublic void removeFXGLListener(FXGLListener listener)
listener - the listenerpublic final void init()
throws Exception
init in class javafx.application.ApplicationExceptionpublic void start(javafx.stage.Stage primaryStage)
throws Exception
start in class javafx.application.ApplicationExceptionpublic final void stop()
stop in class javafx.application.Applicationprotected void pause()
protected void resume()
protected void reset()
System.gc() will be called.protected void exit()
protected abstract void initSettings(GameSettings settings)
settings - app settingspublic final double getWidth()
public final double getHeight()
public final javafx.geometry.Rectangle2D getScreenBounds()
Equivalent to new Rectangle2D(0, 0, getWidth(), getHeight()).
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 QuestManager getQuestManager()
Copyright © 2016. All rights reserved.