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

Game app behavior adding state machine support. More...

Inheritance diagram for Dragengine.GABehaviorStateMachine:
Dragengine.DefaultGABehavior Dragengine.GABehavior

Additional Inherited Members

Public Member Functions inherited from Dragengine.DefaultGABehavior
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 inherited from Dragengine.DefaultGABehavior
String pID

Detailed Description

Game app behavior adding state machine support.

Version
1.35

The state machine to run is loaded from BaseGameApp.getConfiguration() using string key "appBehavior/stateMachine/path" or "appBehavior/stateMachine(id)/path". To enable debug logging set string key "appBehavior/stateMachine/debug" or "appBehavior/stateMachine(id)/debug".

Example configuration file:

<parameterTree>
<!-- other game configurations -->
<!-- define state machine to load and run -->
<string path='appBehavior/stateMachine/path'>/content/statemachines/game.desm</string>
<!-- enable debug logging for the state machine -->
<string path="appBehavior/stateMachine/debug">SM-Game</string>
</parameterTree>
See also
https://developer.dragondreams.ch/wiki/doku.php/dragengine:modules:dragonscript:gabehavior_statemachine

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