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

Default implementation of GABehavior. More...

Inheritance diagram for Dragengine.DefaultGABehavior:
Dragengine.GABehavior Dragengine.GABehaviorFadeOverCanvas Dragengine.GABehaviorInteractiveMainMenu Dragengine.GABehaviorShoutConsole Dragengine.GABehaviorStateMachine Dragengine.Scenery.GABehaviorFlags Dragengine.Scenery.GABehaviorTimers

Public Member Functions

void cleanUp ()
 Clean up game.
String getID ()
 Identifier.
void initGame ()
 Initialize game.
DefaultGABehavior new ()
 Create default behavior with empty identifier.
DefaultGABehavior new (String id)
 Create default behavior.
void onAppActivate ()
 Application has received or lost focus.
void onFrameUpdate (float elapsed)
 Frame update.
void postInitGame ()
 Post initialize game.

Public Attributes

String pID

Detailed Description

Default implementation of GABehavior.

Version
1.35

App behaviors are created during BaseGameApp.initGame() call after the majority of BaseGameApp class members have been created and initialized with some exceptions:

These actions are performed as outlined. All other data already initialized before app behaviors are created should be modified during app behavior construction time.

Member Function Documentation

◆ cleanUp()

◆ getID()

String Dragengine.DefaultGABehavior.getID ( )

◆ initGame()

◆ new() [1/2]

DefaultGABehavior Dragengine.DefaultGABehavior.new ( )

◆ new() [2/2]

DefaultGABehavior Dragengine.DefaultGABehavior.new ( String id)

Create default behavior.

References new().

◆ onAppActivate()

void Dragengine.DefaultGABehavior.onAppActivate ( )

Application has received or lost focus.

Called by BaseGameApp.onAppActivate().

Implements Dragengine.GABehavior.

References cleanUp(), initGame(), onAppActivate(), onFrameUpdate(), and postInitGame().

Referenced by onAppActivate().

◆ onFrameUpdate()

void Dragengine.DefaultGABehavior.onFrameUpdate ( float elapsed)

Frame update.

Called by BaseGameApp#onFrameUpdate(float).

Implements Dragengine.GABehavior.

Reimplemented in Dragengine.Scenery.GABehaviorTimers.

Referenced by onAppActivate().

◆ postInitGame()

void Dragengine.DefaultGABehavior.postInitGame ( )

Post initialize game.

Called by BaseGameApp.initGame() after all behaviors have been initialized.

Implements Dragengine.GABehavior.

Reimplemented in Dragengine.GABehaviorShoutConsole.

Referenced by onAppActivate().

Member Data Documentation

◆ pID

String Dragengine.DefaultGABehavior.pID

Referenced by cleanUp(), and getID().


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