Drag[en]gine Script Module DragonScript  1.21
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. More...
 
Console getConsole ()
 Console object. More...
 
Desktop getDesktop ()
 Desktop widget. More...
 
Loaders getLoaders ()
 Loaders. More...
 
WindowTesting getWindowTesting ()
 Testing window. More...
 
void initGame ()
 Init application. More...
 
void inputEvent (InputEvent event)
 Process input event. More...
 
BaseGameAppTesting new ()
 Create Application. More...
 
void onFrameUpdate ()
 Frame update. More...
 
void onResizeRenderWindow ()
 Render window size changed. 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...
 

Static Public Member Functions

static BaseGameAppTesting getApp ()
 The one and only application object. More...
 

Protected Member Functions

void addTestSuites ()
 Add test suites to test window. More...
 
Desktop createDesktop ()
 Create desktop. More...
 
WindowTesting createWindowTesting ()
 Create testing window. More...
 
Constructors

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.

◆ cleanUp()

void Dragengine.TestSystem.BaseGameAppTesting.cleanUp ( )

Clean up application.

Reimplemented from Dragengine.Game.

◆ 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.

◆ 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.

◆ getApp()

static BaseGameAppTesting Dragengine.TestSystem.BaseGameAppTesting.getApp ( )
static

The one and only application object.

◆ getConsole()

Console Dragengine.TestSystem.BaseGameAppTesting.getConsole ( )

Console object.

◆ getDesktop()

Desktop Dragengine.TestSystem.BaseGameAppTesting.getDesktop ( )

Desktop widget.

◆ getLoaders()

Loaders Dragengine.TestSystem.BaseGameAppTesting.getLoaders ( )

Loaders.

◆ getWindowTesting()

WindowTesting Dragengine.TestSystem.BaseGameAppTesting.getWindowTesting ( )

Testing window.

◆ initGame()

void Dragengine.TestSystem.BaseGameAppTesting.initGame ( )

Init application.

Reimplemented from Dragengine.Game.

◆ inputEvent()

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

Process input event.

Reimplemented from Dragengine.Game.

◆ new()

BaseGameAppTesting Dragengine.TestSystem.BaseGameAppTesting.new ( )

Create Application.

Reimplemented from Dragengine.Game.

◆ onFrameUpdate()

void Dragengine.TestSystem.BaseGameAppTesting.onFrameUpdate ( )

Frame update.

Reimplemented from Dragengine.Game.

◆ onResizeRenderWindow()

void Dragengine.TestSystem.BaseGameAppTesting.onResizeRenderWindow ( )

Render window size changed.

Reimplemented from Dragengine.Game.

◆ userRequestedQuit()

void Dragengine.TestSystem.BaseGameAppTesting.userRequestedQuit ( )

User requested window to be closed.

Reimplemented from Dragengine.Game.


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