Drag[en]gine Script Module DragonScript  1.21
Dragengine.TriggerSystem.TSTriggerExpression Class Reference

Trigger expression. More...

Inheritance diagram for Dragengine.TriggerSystem.TSTriggerExpression:

Public Member Functions

bool containsTarget (TSTriggerTarget target)
 Expression contains target. More...
 
void dispose ()
 Dispose of trigger expression. More...
 
bool evaluate ()
 Evaluate expression if not disabled. More...
 
bool getEnabled ()
 Expression is enabled. More...
 
bool getResult ()
 Result. More...
 
TSTriggerExpressionComponent getRootComponent ()
 Root expression component or null if not set. More...
 
bool isEmpty ()
 Expression is empty hence root component is null. More...
 
bool isNotEmpty ()
 Expression is not empty hence root component is not null. More...
 
void linkTriggerTargets (TSTriggerTable triggerTable, TSTriggerListener listener)
 Link trigger targets using trigger table. More...
 
TSTriggerExpression new ()
 Create trigger expression. More...
 
void setEnabled (bool enabled)
 Set expression is enabled. More...
 
void setResult (bool result)
 Set result. More...
 
void setRootComponent (TSTriggerExpressionComponent component)
 Set root expression component or null if not set. More...
 

Detailed Description

Trigger expression.

Member Function Documentation

◆ containsTarget()

bool Dragengine.TriggerSystem.TSTriggerExpression.containsTarget ( TSTriggerTarget  target)

Expression contains target.

◆ dispose()

void Dragengine.TriggerSystem.TSTriggerExpression.dispose ( )

Dispose of trigger expression.

◆ evaluate()

bool Dragengine.TriggerSystem.TSTriggerExpression.evaluate ( )

Evaluate expression if not disabled.

Stores result for later use.

Returns
true if result changed otherwise false.

◆ getEnabled()

bool Dragengine.TriggerSystem.TSTriggerExpression.getEnabled ( )

Expression is enabled.

◆ getResult()

bool Dragengine.TriggerSystem.TSTriggerExpression.getResult ( )

Result.

◆ getRootComponent()

TSTriggerExpressionComponent Dragengine.TriggerSystem.TSTriggerExpression.getRootComponent ( )

Root expression component or null if not set.

◆ isEmpty()

bool Dragengine.TriggerSystem.TSTriggerExpression.isEmpty ( )

Expression is empty hence root component is null.

◆ isNotEmpty()

bool Dragengine.TriggerSystem.TSTriggerExpression.isNotEmpty ( )

Expression is not empty hence root component is not null.

◆ linkTriggerTargets()

void Dragengine.TriggerSystem.TSTriggerExpression.linkTriggerTargets ( TSTriggerTable  triggerTable,
TSTriggerListener  listener 
)

Link trigger targets using trigger table.

If trigger table is null all trigger targets are unlinked. The listener is registered for all targets. A previously existing listener is removed first. After linking the expression is evaluated.

◆ new()

TSTriggerExpression Dragengine.TriggerSystem.TSTriggerExpression.new ( )

Create trigger expression.

◆ setEnabled()

void Dragengine.TriggerSystem.TSTriggerExpression.setEnabled ( bool  enabled)

Set expression is enabled.

◆ setResult()

void Dragengine.TriggerSystem.TSTriggerExpression.setResult ( bool  result)

Set result.

◆ setRootComponent()

void Dragengine.TriggerSystem.TSTriggerExpression.setRootComponent ( TSTriggerExpressionComponent  component)

Set root expression component or null if not set.


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