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

GameWorld Behavior adding support for parameter tree. More...

Inheritance diagram for Dragengine.Scenery.GWBehaviorParameterTree:
Dragengine.Scenery.DefaultGWBehavior Dragengine.Scenery.GWBehavior

Public Member Functions

ParameterTree getParameterTree ()
 Parameter tree.
void init (StubGameWorld stub)
 Initialize game world from stub.
GWBehaviorParameterTree new (GameWorld gameWorld)
 Create element.
Public Member Functions inherited from Dragengine.Scenery.DefaultGWBehavior
void dispose ()
 Dispose of behavior.
String getBehaviorID ()
 Unique identifier of behavior.
GameWorld getGameWorld ()
 Game world this behavior belongs to.
String getID ()
 Identifier.
void loadSupportedData (String identifier, PersistencyEnvironment env, FileReader reader)
 Load data of another behavior.
DefaultGWBehavior new (GameWorld gameWorld, String id)
 Create default behavior.
void postThink (float elapsed)
 Post thinking after physics processing is finished.
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read from file.
bool requiresPersistency ()
 Behavior requires readFromFile() and writeToFile() to be called.
bool requiresThink ()
 Behavior instance requires update(), think() and postThink() to be called.
bool supportsBehaviorID (String identifier)
 Behavior supports loading data of another behavior.
void think (float elapsed)
 Think about what to do for the next frame update.
void update (float elapsed)
 Frame update.
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write to file.

Static Public Member Functions

static GWBehaviorParameterTree getBehaviorIn (GameWorld gameWorld)
 Get behavior in game world or null if absent.

Public Attributes

ParameterTree pParameterTree

Additional Inherited Members

Protected Member Functions inherited from Dragengine.Scenery.DefaultGWBehavior
void setBehaviorID (String identifier)
 Set behavior identifier.
void setRequiresPersistency (bool required)
 Set if behavior requires readFromFile() and writeToFile() to be called.
void setRequiresThink (bool required)
 Set if behavior instance requires update(), think() and postThink() to be called.
void useClassNameAsBehaviorID ()
 Set behavior identifier to "<class-name>:<identifier>".
void useFullyQualifiedClassNameAsBehaviorID ()
 Set behavior identifier to "<fully-qualified-class-name>:<identifier>".

Detailed Description

GameWorld Behavior adding support for parameter tree.

Version
1.35

Loads parameter tree which elements can use to store configuration data in an organized way. Parameter tree file is set using world property "parameterTree.path".

This behavior can be present only once in a GameWorld.

See also
https://developer.dragondreams.ch/wiki/doku.php/dragengine:modules:dragonscript:gwbehavior_parametertree

Member Function Documentation

◆ getBehaviorIn()

GWBehaviorParameterTree Dragengine.Scenery.GWBehaviorParameterTree.getBehaviorIn ( GameWorld gameWorld)
static

Get behavior in game world or null if absent.

Use this method to check if GameWorld contains behavior of type GWBehaviorParameterTree.

References getBehaviorIn(), getParameterTree(), and pParameterTree.

Referenced by getBehaviorIn().

◆ getParameterTree()

ParameterTree Dragengine.Scenery.GWBehaviorParameterTree.getParameterTree ( )

Parameter tree.

References getParameterTree().

Referenced by getBehaviorIn(), and getParameterTree().

◆ init()

void Dragengine.Scenery.GWBehaviorParameterTree.init ( StubGameWorld stub)

Initialize game world from stub.

Reimplemented from Dragengine.Scenery.DefaultGWBehavior.

References init().

Referenced by init().

◆ new()

GWBehaviorParameterTree Dragengine.Scenery.GWBehaviorParameterTree.new ( GameWorld gameWorld)

Create element.

Reimplemented from Dragengine.Scenery.DefaultGWBehavior.

References new(), and pParameterTree.

Referenced by new().

Member Data Documentation

◆ pParameterTree

ParameterTree Dragengine.Scenery.GWBehaviorParameterTree.pParameterTree

Referenced by getBehaviorIn(), and new().


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