|
Drag[en]gine Script Module DragonScript 1.35
|
Basic implementation of application class for use by testing applications. More...
Public Member Functions | |
| void | cleanUp () |
| Clean up application. | |
| Console | getConsole () |
| Console object. | |
| Desktop | getDesktop () |
| Desktop widget. | |
| Loaders | getLoaders () |
| Loaders. | |
| WindowTesting | getWindowTesting () |
| Testing window. | |
| void | initGame () |
| Init application. | |
| void | inputEvent (InputEvent event) |
| Process input event. | |
| BaseGameAppTesting | new () |
| Create Application. | |
| void | onFrameUpdate () |
| Frame update. | |
| void | onResizeRenderWindow () |
| Render window size changed. | |
| void | userRequestedQuit () |
| User requested window to be closed. | |
| Public Member Functions inherited from Dragengine.Game | |
| void | onAppActivate () |
| Called after the application received or lost focus. | |
| int | getArgumentCount () |
| Number of command line arguments given to the game. | |
| String | getArgumentAt (int index) |
| Command line argument given to the game. | |
| String | getRestartInfo () |
| Information passed to Engine.restart(String) before restarting. | |
Static Public Member Functions | |
| static BaseGameAppTesting | getApp () |
| The one and only application object. | |
Protected Member Functions | |
| void | addTestSuites () |
| Add test suites to test window. | |
| Desktop | createDesktop () |
| Create desktop. | |
| WindowTesting | createWindowTesting () |
| Create testing window. | |
| Protected Member Functions inherited from Dragengine.Game | |
Basic implementation of application class for use by testing applications.
Creates a Desktop and WindowTesting instance. Subclass can add TestSuite to the window. Using the window the tests can be run.
|
protected |
Add test suites to test window.
References getWindowTesting().
Referenced by createDesktop(), and inputEvent().
| void Dragengine.TestSystem.BaseGameAppTesting.cleanUp | ( | ) |
|
protected |
Create desktop.
Default implementation creates instance of Desktop. Return null to not create a desktop for example for CI use.
References addTestSuites(), and createWindowTesting().
Referenced by createWindowTesting(), and onResizeRenderWindow().
|
protected |
Create testing window.
Default implementation creates instance of WindowTesting. Return null to use your own window or none at all for example for CI use.
References cleanUp(), createDesktop(), createWindowTesting(), inputEvent(), new(), onFrameUpdate(), onResizeRenderWindow(), and userRequestedQuit().
Referenced by createDesktop(), and createWindowTesting().
|
static |
| Console Dragengine.TestSystem.BaseGameAppTesting.getConsole | ( | ) |
Console object.
Referenced by getLoaders().
| Desktop Dragengine.TestSystem.BaseGameAppTesting.getDesktop | ( | ) |
| Loaders Dragengine.TestSystem.BaseGameAppTesting.getLoaders | ( | ) |
| WindowTesting Dragengine.TestSystem.BaseGameAppTesting.getWindowTesting | ( | ) |
| void Dragengine.TestSystem.BaseGameAppTesting.initGame | ( | ) |
| void Dragengine.TestSystem.BaseGameAppTesting.inputEvent | ( | InputEvent | event | ) |
Process input event.
Reimplemented from Dragengine.Game.
References addTestSuites().
Referenced by createWindowTesting().
| BaseGameAppTesting Dragengine.TestSystem.BaseGameAppTesting.new | ( | ) |
Create Application.
Reimplemented from Dragengine.Game.
References new().
Referenced by createWindowTesting(), new(), and onResizeRenderWindow().
| void Dragengine.TestSystem.BaseGameAppTesting.onFrameUpdate | ( | ) |
Frame update.
Reimplemented from Dragengine.Game.
References initGame().
Referenced by createWindowTesting().
| void Dragengine.TestSystem.BaseGameAppTesting.onResizeRenderWindow | ( | ) |
Render window size changed.
Reimplemented from Dragengine.Game.
References createDesktop(), and new().
Referenced by createWindowTesting().
| void Dragengine.TestSystem.BaseGameAppTesting.userRequestedQuit | ( | ) |
User requested window to be closed.
Reimplemented from Dragengine.Game.
Referenced by createWindowTesting().