Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECBehaviorTriggered.Instance Class Reference

Behavior instance. More...

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

Classes

class  TriggedListener
 Trigger listener. More...
 

Public Member Functions

void addListener (Listener listener)
 Add listener. More...
 
Dictionary debugInformation ()
 Behavior debug information as Dictionary. More...
 
void dispose ()
 Dispose of composeable instance. More...
 
ECBehaviorTriggered getECBehavior ()
 Behavior. More...
 
bool getState ()
 Trigger expression state. More...
 
bool getState (bool defaultValue)
 Trigger expression state or default value if absent. More...
 
TSTriggerExpression getTriggerExpression ()
 Trigger expression or null if not used. More...
 
TSTriggerTable getTriggerTable ()
 Trigger table to link trigger expression to. More...
 
bool hasTriggerExpression ()
 Trigger expression is present. More...
 
void init (StubElement stub)
 Initialize element from stub. More...
 
Instance new (ECBehaviorTriggered ecbehavior, BehaviorElement element)
 Create element. More...
 
void notifyListeners ()
 Notify listener trigger expression changed. More...
 
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read behavior from file. More...
 
void removeListener (Listener listener)
 Remove listener. More...
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void addToGameWorld ()
 Add element to game world. More...
 
void attachToParent (Element parent)
 Attach element to object set by the mapper in the IGDE World Editor. More...
 
void enterFrame ()
 Frame update started. More...
 
void geometryChanged ()
 Position or orientation changed. More...
 
BehaviorElement getElement ()
 Behavior element to apply behavior to. More...
 
int getInstanceIndex ()
 Behavior instance index. More...
 
DefaultECBehaviorInstance new (BehaviorElement element)
 Create default composeable instance. More...
 
void postThink (float elapsed)
 Post thinking after physics processing is finished. More...
 
void removeFromGameWorld ()
 Remove element from game world. More...
 
bool requiresEnterFrame ()
 Behavior instance requires enterFrame() to be called. More...
 
bool requiresThink ()
 Behavior instance requires think() to be called. More...
 
void stateChanged ()
 State changed (visble, touchable). More...
 
void think (float elapsed)
 Think about what to do for the next frame update. More...
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior instance to file. More...
 

Public Attributes

ECBehaviorTriggered pECBehavior
 
Array pListeners
 
bool pLoading
 
TSTriggerExpression pTriggerExpression
 
TSTriggerTable pTriggerTable
 

Protected Member Functions

void setTriggerExpression (TSTriggerExpression expression)
 Set trigger expression or null if not used. More...
 
void setTriggerTable (TSTriggerTable triggerTable)
 Trigger table to link trigger expression to. More...
 
- Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void setRequiresEnterFrame (bool required)
 Set if behavior instance requires enterFrame() to be called. More...
 
void setRequiresThink (bool required)
 Set if behavior instance requires think() to be called. More...
 

Detailed Description

Behavior instance.

Member Function Documentation

◆ addListener()

void Dragengine.Scenery.ECBehaviorTriggered.Instance.addListener ( Listener  listener)

Add listener.

◆ debugInformation()

Dictionary Dragengine.Scenery.ECBehaviorTriggered.Instance.debugInformation ( )

Behavior debug information as Dictionary.

◆ dispose()

void Dragengine.Scenery.ECBehaviorTriggered.Instance.dispose ( )

Dispose of composeable instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getECBehavior()

ECBehaviorTriggered Dragengine.Scenery.ECBehaviorTriggered.Instance.getECBehavior ( )

Behavior.

◆ getState() [1/2]

bool Dragengine.Scenery.ECBehaviorTriggered.Instance.getState ( )

Trigger expression state.

◆ getState() [2/2]

bool Dragengine.Scenery.ECBehaviorTriggered.Instance.getState ( bool  defaultValue)

Trigger expression state or default value if absent.

◆ getTriggerExpression()

TSTriggerExpression Dragengine.Scenery.ECBehaviorTriggered.Instance.getTriggerExpression ( )

Trigger expression or null if not used.

◆ getTriggerTable()

TSTriggerTable Dragengine.Scenery.ECBehaviorTriggered.Instance.getTriggerTable ( )

Trigger table to link trigger expression to.

◆ hasTriggerExpression()

bool Dragengine.Scenery.ECBehaviorTriggered.Instance.hasTriggerExpression ( )

Trigger expression is present.

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new()

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

Create element.

◆ notifyListeners()

void Dragengine.Scenery.ECBehaviorTriggered.Instance.notifyListeners ( )

Notify listener trigger expression changed.

◆ readFromFile()

void Dragengine.Scenery.ECBehaviorTriggered.Instance.readFromFile ( PersistencyEnvironment  env,
FileReader  reader 
)

Read behavior from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ removeListener()

void Dragengine.Scenery.ECBehaviorTriggered.Instance.removeListener ( Listener  listener)

Remove listener.

◆ setTriggerExpression()

void Dragengine.Scenery.ECBehaviorTriggered.Instance.setTriggerExpression ( TSTriggerExpression  expression)
protected

Set trigger expression or null if not used.

◆ setTriggerTable()

void Dragengine.Scenery.ECBehaviorTriggered.Instance.setTriggerTable ( TSTriggerTable  triggerTable)
protected

Trigger table to link trigger expression to.

Member Data Documentation

◆ pECBehavior

ECBehaviorTriggered Dragengine.Scenery.ECBehaviorTriggered.Instance.pECBehavior

◆ pListeners

Array Dragengine.Scenery.ECBehaviorTriggered.Instance.pListeners

◆ pLoading

bool Dragengine.Scenery.ECBehaviorTriggered.Instance.pLoading

◆ pTriggerExpression

TSTriggerExpression Dragengine.Scenery.ECBehaviorTriggered.Instance.pTriggerExpression

◆ pTriggerTable

TSTriggerTable Dragengine.Scenery.ECBehaviorTriggered.Instance.pTriggerTable

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