Board Game Application
Baseclass for all BGW Applications. Extend from this class in order to create your own game application. You may only instantiate one application.
Scenes get shown by calling showMenuScene and showGameScene. Application starts by calling show.
See also
Parameters
Title for the application window. Gets displayed in the title bar. Default: DEFAULT_WINDOW_TITLE.
Initial aspect ratio of application window. Default: empty AspectRatio constructor.
Initial window mode. Overrides isMaximized and isFullScreen if passed. Refer to WindowMode docs for further information about the effects.
Constructors
Creates the BoardGameApplication with optional title and dimension. May only be called once per execution.
Creates the BoardGameApplication with optional title and aspect ratio. May only be called once per execution.
Types
Functions
Hides currently shown MenuScene. Activates BoardGameScene if present.
Sets HorizontalAlignment of all Scenes in this BoardGameApplication.
Sets ScaleMode of all Scenes in this BoardGameApplication.
Sets Alignment of all Scenes in this BoardGameApplication.
Sets VerticalAlignment of all Scenes in this BoardGameApplication.
Shows the BoardGameApplication.
Shows a dialog and blocks further thread execution.
Shows a dialog without blocking further thread execution.
Shows the given FileDialog.
Shows given BoardGameScene.
Shows given MenuScene. If BoardGameScene is currently displayed, it gets deactivated and blurred.
Properties
Sets this BoardGameApplication's fullscreen mode. true
for fullscreen mode, false
for default window.
Sets this BoardGameApplication's preferred height. Only affects non-maximized, non-fullscreen windows.
Sets this BoardGameApplication's preferred width. Only affects non-maximized, non-fullscreen windows.