|
Drag[en]gine Script Module DragonScript 1.35
|
GameApp Behavior instance interface providing the actual game app behavior. More...
Public Member Functions | |
| void | cleanUp () |
| Clean up game. | |
| void | initGame () |
| Initialize game. | |
| void | onAppActivate () |
| Application has received or lost focus. | |
| void | onFrameUpdate (float elapsed) |
| Frame update. | |
| void | postInitGame () |
| Post initialize game. | |
GameApp Behavior instance interface providing the actual game app behavior.
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.GABehavior.cleanUp | ( | ) |
Clean up game.
Called by BaseGameApp.cleanUp().
Implemented in Dragengine.DefaultGABehavior, Dragengine.GABehaviorFadeOverCanvas, Dragengine.GABehaviorInteractiveMainMenu, Dragengine.GABehaviorShoutConsole, Dragengine.Scenery.GABehaviorFlags, and Dragengine.Scenery.GABehaviorTimers.
References onFrameUpdate().
Referenced by postInitGame().
| void Dragengine.GABehavior.initGame | ( | ) |
Initialize game.
Called by BaseGameApp.initGame().
Implemented in Dragengine.DefaultGABehavior, Dragengine.GABehaviorFadeOverCanvas, Dragengine.GABehaviorInteractiveMainMenu, Dragengine.GABehaviorShoutConsole, Dragengine.Scenery.GABehaviorFlags, and Dragengine.Scenery.GABehaviorTimers.
References initGame(), and postInitGame().
Referenced by initGame().
| void Dragengine.GABehavior.onAppActivate | ( | ) |
Application has received or lost focus.
Called by BaseGameApp.onAppActivate().
Implemented in Dragengine.DefaultGABehavior.
Referenced by onFrameUpdate().
| void Dragengine.GABehavior.onFrameUpdate | ( | float | elapsed | ) |
Frame update.
Called by BaseGameApp#onFrameUpdate(float).
Implemented in Dragengine.DefaultGABehavior, and Dragengine.Scenery.GABehaviorTimers.
References onAppActivate().
Referenced by cleanUp().
| void Dragengine.GABehavior.postInitGame | ( | ) |
Post initialize game.
Called by BaseGameApp.initGame() after all behaviors have been initialized.
Implemented in Dragengine.DefaultGABehavior, and Dragengine.GABehaviorShoutConsole.
References cleanUp().
Referenced by initGame().