|
Drag[en]gine Script Module DragonScript 1.35
|
Default implementation of GABehavior. More...
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 |
Default implementation of GABehavior.
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.
| void Dragengine.DefaultGABehavior.cleanUp | ( | ) |
Clean up game.
Called by BaseGameApp.cleanUp().
Implements Dragengine.GABehavior.
Reimplemented in Dragengine.GABehaviorFadeOverCanvas, Dragengine.GABehaviorInteractiveMainMenu, Dragengine.GABehaviorShoutConsole, Dragengine.Scenery.GABehaviorFlags, and Dragengine.Scenery.GABehaviorTimers.
Referenced by onAppActivate().
| String Dragengine.DefaultGABehavior.getID | ( | ) |
Identifier.
References pID.
Referenced by cleanUp(), and Dragengine.GABehaviorStateMachine.SMAWindowLogoUpdate.ActionRunEvent.onAction().
| void Dragengine.DefaultGABehavior.initGame | ( | ) |
Initialize game.
Called by BaseGameApp.initGame().
Implements Dragengine.GABehavior.
Reimplemented in Dragengine.GABehaviorFadeOverCanvas, Dragengine.GABehaviorInteractiveMainMenu, Dragengine.GABehaviorShoutConsole, Dragengine.Scenery.GABehaviorFlags, and Dragengine.Scenery.GABehaviorTimers.
Referenced by onAppActivate().
| DefaultGABehavior Dragengine.DefaultGABehavior.new | ( | ) |
Create default behavior with empty identifier.
Reimplemented in Dragengine.GABehaviorFadeOverCanvas, Dragengine.GABehaviorInteractiveMainMenu, Dragengine.GABehaviorShoutConsole, Dragengine.Scenery.GABehaviorFlags, and Dragengine.Scenery.GABehaviorTimers.
References new().
| DefaultGABehavior Dragengine.DefaultGABehavior.new | ( | String | id | ) |
Create default behavior.
References new().
| 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().
| void Dragengine.DefaultGABehavior.onFrameUpdate | ( | float | elapsed | ) |
Frame update.
Called by BaseGameApp#onFrameUpdate(float).
Implements Dragengine.GABehavior.
Reimplemented in Dragengine.Scenery.GABehaviorTimers.
Referenced by onAppActivate().
| 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().