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

Behavior instance. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorParameterTree.Instance:
Dragengine.Scenery.DefaultECBehaviorInstance Dragengine.Scenery.ECBehaviorInstance

Public Member Functions

String getDataPath ()
 Data path.
ParameterTree getDataPathTree ()
 Data path tree or null if not found.
ECBehaviorParameterTree getECBehavior ()
 Behavior.
ParameterTree getParameterTree ()
 Parameter tree or null if not defined or not loaded successfully.
void init (StubElement stub)
 Initialize element from stub.
Instance new (ECBehaviorParameterTree ecbehavior, BehaviorElement element)
 Create element.
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void addToGameWorld ()
 Add element to game world.
void attachToParent (Element parent)
 Attach element to object set by the mapper in the IGDE World Editor.
void dispose ()
 Dispose of behavior instance.
void enterFrame ()
 Frame update started.
void geometryChanged ()
 Position or orientation changed.
BehaviorElement getElement ()
 Behavior element to apply behavior to.
int getInstanceIndex ()
 Behavior instance index.
DefaultECBehaviorInstance new (BehaviorElement element)
 Create default composeable instance.
void postThink (float elapsed)
 Post thinking after physics processing is finished.
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read behavior instance from file.
void removeFromGameWorld ()
 Remove element from game world.
bool requiresEnterFrame ()
 Behavior instance requires enterFrame() to be called.
bool requiresThink ()
 Behavior instance requires think() to be called.
void stateChanged ()
 State changed (visble, touchable).
void think (float elapsed)
 Think about what to do for the next frame update.
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior instance to file.

Public Attributes

String pDataPath
ECBehaviorParameterTree pECBehavior
ParameterTree pParameterTree
Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance
BehaviorElement pElement
int pInstanceIndex
bool pRequiresEnterFrame
bool pRequiresThink

Additional Inherited Members

Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void setRequiresEnterFrame (bool required)
 Set if behavior instance requires enterFrame() to be called.
void setRequiresThink (bool required)
 Set if behavior instance requires think() to be called.

Detailed Description

Behavior instance.

Member Function Documentation

◆ getDataPath()

String Dragengine.Scenery.ECBehaviorParameterTree.Instance.getDataPath ( )

◆ getDataPathTree()

ParameterTree Dragengine.Scenery.ECBehaviorParameterTree.Instance.getDataPathTree ( )

Data path tree or null if not found.

If parameter tree is present in this behavior the path is resolved inside. If parameter tree is absent from this behavior and the element is in a game world the parameter tree of GWBehaviorParameterTree is used to look up the data path. If nothing is found, null is returned.

This is a convenience method for accessing the data path and requires the data path to point to a ParameterTree.

References pParameterTree.

◆ getECBehavior()

ECBehaviorParameterTree Dragengine.Scenery.ECBehaviorParameterTree.Instance.getECBehavior ( )

Behavior.

References new().

◆ getParameterTree()

ParameterTree Dragengine.Scenery.ECBehaviorParameterTree.Instance.getParameterTree ( )

Parameter tree or null if not defined or not loaded successfully.

References pECBehavior.

Referenced by getDataPath().

◆ init()

void Dragengine.Scenery.ECBehaviorParameterTree.Instance.init ( StubElement stub)

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

References pDataPath, pECBehavior, and pParameterTree.

Referenced by getDataPath().

◆ new()

Instance Dragengine.Scenery.ECBehaviorParameterTree.Instance.new ( ECBehaviorParameterTree ecbehavior,
BehaviorElement element )

Create element.

Referenced by getECBehavior().

Member Data Documentation

◆ pDataPath

String Dragengine.Scenery.ECBehaviorParameterTree.Instance.pDataPath

Referenced by getDataPath(), and init().

◆ pECBehavior

ECBehaviorParameterTree Dragengine.Scenery.ECBehaviorParameterTree.Instance.pECBehavior

Referenced by getDataPath(), getParameterTree(), and init().

◆ pParameterTree

ParameterTree Dragengine.Scenery.ECBehaviorParameterTree.Instance.pParameterTree

Referenced by getDataPath(), getDataPathTree(), and init().


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