Drag[en]gine Script Module DragonScript
1.21
|
BaseGameApp for use by tests. More...
Public Member Functions | |
void | initGame () |
TestGameApp | new () |
Create test game application. More... | |
void | onFrameUpdate () |
Public Member Functions inherited from Dragengine.BaseGameApp | |
void | cancelLoadGameWorld () |
Cancel loading game world. More... | |
void | cleanUp () |
Called by the game engine to clean up before the game exits. More... | |
BaseConversationPlayback | createConversationPlayback (Conversation conversation) |
Create conversation playback. More... | |
InputProcessor | createInputProcessorBindings () |
Create input processor to forward events to binding manager. More... | |
InputProcessor | createInputProcessorDesktop () |
Create input processor to forward events to desktop widget. More... | |
DefaultBindingHelper | defaultBindings () |
Create default bindings. More... | |
void | desktopLoadGuiTheme (String filename) |
Load gui theme and assign it to desktop widget. More... | |
void | finishLoadGameWorld () |
Finish loading game world. More... | |
BindingManager | getBindingManager () |
Binding manager. More... | |
CommandManager | getCommandManager () |
Command Manager. More... | |
ParameterTree | getConfiguration () |
Game configuration. More... | |
ConnectionTracker | getConnectionTracker () |
Connection tracker. More... | |
Console | getConsole () |
Console object. More... | |
ConsoleCommandList | getConsoleCommands () |
Console command list. More... | |
Desktop | getDesktop () |
Desktop widget. More... | |
ElementClassList | getElementClassList () |
Element classes list. More... | |
GameWorldLoader | getGameWorldLoader () |
Game world loader or null. More... | |
GlobalEvents | getGlobalEvents () |
Global event manager. More... | |
MutableID | getIDGenerator () |
ID Generator. More... | |
InputProcessor | getInputProcessor () |
Input Processor. More... | |
bool | getInverseLookVertical () |
Invert looking up-down. More... | |
Loaders | getLoaders () |
Loaders. More... | |
float | getMouseSensitivity () |
Mouse sensitivity. More... | |
NetworkStateTracker | getNetworkStateTracker () |
Network state tracker. More... | |
PanelHud | getPanelHud () |
Game world HUD panel or null. More... | |
ECBehaviorPlayerControllable.Tracker | getPlayerControlledActor () |
Player controlled actor tracker. More... | |
ScreenshotCreator | getScreenshotCreator () |
Screenshot creator. More... | |
ParameterTree | getSettings () |
Saved settings. More... | |
SkinAnnotations | getSkinAnnotations () |
Skin annotations. More... | |
TranslationManager | getTranslationManager () |
Translation manager. More... | |
TSTriggerTable | getTriggerTable () |
Trigger table. More... | |
WindowConsole | getWindowConsole () |
Console window toggled using CommandToggleConsole or null if absent. More... | |
WindowGameWorld | getWindowGameWorld () |
Game world window or null. More... | |
WindowPlayerChoice | getWindowPlayerChoice () |
PlayerChoice window or null if absent. More... | |
WindowSubTitle | getWindowSubTitle () |
SubTitle window or null if absent. More... | |
void | initSettings () |
Init settings with default values. More... | |
void | inputEvent (InputEvent event) |
Process input event. More... | |
void | onResizeRenderWindow () |
Render window size changed. More... | |
void | quitGame () |
Quit game. More... | |
void | saveBindings () |
Save bindings to the bindings file. More... | |
void | saveSettings () |
Save settings to the settings file. More... | |
void | setDesktop (Desktop desktop) |
Set desktop widget. More... | |
void | setInputProcessor (InputProcessor inputProcessor) |
Set input processor. More... | |
void | setInputProcessorBindings () |
Set input processor to forward events to binding manager. More... | |
void | setInputProcessorDesktop () |
Set input processor to forward events to desktop widget. More... | |
void | setInputProcessorNothing () |
Set input processor to nothing. More... | |
void | setInverseLookVertical (bool inverseLookVertical) |
Set if looking up-down is inverted. More... | |
void | setMouseSensitivity (float sensitivity) |
Set mouse sensitivity. More... | |
void | startLoadGameWorld (GameWorldLoader loader) |
Start loading game world. More... | |
void | userRequestedQuit () |
User requested window to be closed. More... | |
Public Member Functions inherited from Dragengine.Game | |
int | getArgumentCount () |
Number of command line arguments given to the game. More... | |
String | getArgumentAt (int index) |
Command line argument given to the game. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Dragengine.BaseGameApp | |
static BaseGameApp | getApp () |
The one and only application object. More... | |
Static Public Attributes inherited from Dragengine.BaseGameApp | |
static final String | defaultPathGuiTheme = "/shareddata/guithemes/modern/modern.guitheme.xml" |
Path of default gui theme provided by the DragonScript module. More... | |
static String | eventDeviceAttachedDetached = "deviceAttachedDetached" |
Global event send if input devices have been attached or detached. More... | |
static String | eventDeviceParamsChanged = "deviceParamsChanged" |
Global event send if input device parameters have changed. More... | |
static final String | settingInputInvertLookVertical = "input.invertLookVertical" |
Invert looking up-down setting key. More... | |
static final String | settingInputMouseSensitivity = "input/mouseSensitivity" |
Mouse sensitivity. More... | |
Protected Member Functions inherited from Dragengine.BaseGameApp | |
void | createAndAddCommands () |
Create commands and add them to command list. More... | |
void | createAndAddConsoleCommands () |
Create console commands and add them to console command list. More... | |
void | createAndAddElementClasses () |
Create element classes and add them to element class list. More... | |
void | createAndSetDesktop () |
Create and set desktop. More... | |
ConnectionTracker | createConnectionTracker () |
Create connection tracker. More... | |
NetworkStateTracker | createNetworkStateTracker () |
Create network state tracker. More... | |
PanelHud | createPanelHud () |
Create game world hud panel. More... | |
ScreenshotCreator | createScreenshotCreator () |
Create screen shot creater. More... | |
SkinAnnotations | createSkinAnnotations () |
Create skin annotations. More... | |
TranslationManager | createTranslationManager () |
Create translation manager. More... | |
TSTriggerTable | createTriggerTable () |
Create trigger table. More... | |
WindowConsole | createWindowConsole () |
Create console window. More... | |
WindowGameWorld | createWindowGameWorld () |
Create game world window. More... | |
WindowPlayerChoice | createWindowPlayerChoice () |
Create player choice window. More... | |
WindowSubTitle | createWindowSubTitle () |
Create sub title window. More... | |
void | initLanguages () |
Load language packs and select active language pack. More... | |
void | loadBindings () |
Load bindings from saved configuration or create default bindings. More... | |
void | loadConfiguration () |
Load configuration from parameter tree XML file if present. More... | |
void | loadSettings () |
Load settings from saved settings or set default settings. More... | |
void | registerPersistencyFactories () |
Register persistency factories. More... | |
Constructors | |
Protected Attributes inherited from Dragengine.BaseGameApp | |
int | defaultConsoleBufferSize |
Default console buffer size. More... | |
float | defaultInputMouseAxisScale |
Default binding input processor mouse axis scale factor. More... | |
float | defaultInputMouseWheelScale |
Default binding input processor mouse wheel scale factor. More... | |
String | defaultLanguagePackIdentifier |
Name of default language pack to activate. More... | |
UnicodeString | defaultLanguagePackName |
Name of default language pack to activate. More... | |
String | pathConfiguration |
Configuration file path property. More... | |
String | pathDesktopGuiTheme |
Desktop gui theme path property. More... | |
String | pathLanguagePacks |
Path to directory containing language packs. More... | |
String | pathSavedBindings |
Binding save file path property. More... | |
String | pathSavedSettings |
Application settings file path property. More... | |
BaseGameApp for use by tests.
This class has to nullify all side effects of using BaseGameApp which interferes with the regular application handling. This is a bit complicated but ensures tests can run against an as-vanilla-as-possibe BaseGameApp without breaking the test application.
void Dragengine.TestSystem.TestGameApp.initGame | ( | ) |
Overrides BaseGameApp.initGame()
Reimplemented from Dragengine.BaseGameApp.
TestGameApp Dragengine.TestSystem.TestGameApp.new | ( | ) |
Create test game application.
Reimplemented from Dragengine.BaseGameApp.
void Dragengine.TestSystem.TestGameApp.onFrameUpdate | ( | ) |
Overrides BaseGameApp.onFrameUpdate()
Reimplemented from Dragengine.BaseGameApp.