Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.TestSystem.BaseGameAppTesting Class Reference

Basic implementation of application class for use by testing applications. More...

Inheritance diagram for Dragengine.TestSystem.BaseGameAppTesting:
Dragengine.Game

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

Detailed Description

Basic implementation of application class for use by testing applications.

Version
1.5

Creates a Desktop and WindowTesting instance. Subclass can add TestSuite to the window. Using the window the tests can be run.

Member Function Documentation

◆ addTestSuites()

void Dragengine.TestSystem.BaseGameAppTesting.addTestSuites ( )
protected

Add test suites to test window.

References getWindowTesting().

Referenced by createDesktop(), and inputEvent().

◆ cleanUp()

void Dragengine.TestSystem.BaseGameAppTesting.cleanUp ( )

Clean up application.

Reimplemented from Dragengine.Game.

Referenced by createWindowTesting().

◆ createDesktop()

Desktop Dragengine.TestSystem.BaseGameAppTesting.createDesktop ( )
protected

Create desktop.

Version
1.13

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().

◆ createWindowTesting()

WindowTesting Dragengine.TestSystem.BaseGameAppTesting.createWindowTesting ( )
protected

Create testing window.

Version
1.13

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().

◆ getApp()

BaseGameAppTesting Dragengine.TestSystem.BaseGameAppTesting.getApp ( )
static

The one and only application object.

References getApp().

Referenced by getApp().

◆ getConsole()

Console Dragengine.TestSystem.BaseGameAppTesting.getConsole ( )

Console object.

Referenced by getLoaders().

◆ getDesktop()

Desktop Dragengine.TestSystem.BaseGameAppTesting.getDesktop ( )

Desktop widget.

References getLoaders().

Referenced by getWindowTesting().

◆ getLoaders()

Loaders Dragengine.TestSystem.BaseGameAppTesting.getLoaders ( )

Loaders.

References getConsole().

Referenced by getDesktop().

◆ getWindowTesting()

WindowTesting Dragengine.TestSystem.BaseGameAppTesting.getWindowTesting ( )

Testing window.

References getDesktop().

Referenced by addTestSuites().

◆ initGame()

void Dragengine.TestSystem.BaseGameAppTesting.initGame ( )

Init application.

Reimplemented from Dragengine.Game.

Referenced by onFrameUpdate().

◆ inputEvent()

void Dragengine.TestSystem.BaseGameAppTesting.inputEvent ( InputEvent event)

Process input event.

Reimplemented from Dragengine.Game.

References addTestSuites().

Referenced by createWindowTesting().

◆ new()

BaseGameAppTesting Dragengine.TestSystem.BaseGameAppTesting.new ( )

Create Application.

Reimplemented from Dragengine.Game.

References new().

Referenced by createWindowTesting(), new(), and onResizeRenderWindow().

◆ onFrameUpdate()

void Dragengine.TestSystem.BaseGameAppTesting.onFrameUpdate ( )

Frame update.

Reimplemented from Dragengine.Game.

References initGame().

Referenced by createWindowTesting().

◆ onResizeRenderWindow()

void Dragengine.TestSystem.BaseGameAppTesting.onResizeRenderWindow ( )

Render window size changed.

Reimplemented from Dragengine.Game.

References createDesktop(), and new().

Referenced by createWindowTesting().

◆ userRequestedQuit()

void Dragengine.TestSystem.BaseGameAppTesting.userRequestedQuit ( )

User requested window to be closed.

Reimplemented from Dragengine.Game.

Referenced by createWindowTesting().


The documentation for this class was generated from the following file: