Drag[en]gine Script Module DragonScript Script API  1.0
TSTriggerExpression Class Reference

Trigger expression. More...

Inheritance diagram for TSTriggerExpression:

Public Member Functions

bool containsTarget (TSTriggerTarget target)
 Expression contains target. 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.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ containsTarget()

bool containsTarget ( TSTriggerTarget  target)

Expression contains target.

§ evaluate()

bool evaluate ( )

Evaluate expression if not disabled.

Stores result for later use.

Returns
true if result changed otherwise false.

§ getEnabled()

bool getEnabled ( )

Expression is enabled.

§ getResult()

bool getResult ( )

Result.

§ getRootComponent()

TSTriggerExpressionComponent getRootComponent ( )

Root expression component or null if not set.

§ isEmpty()

bool isEmpty ( )

Expression is empty hence root component is null.

§ isNotEmpty()

bool isNotEmpty ( )

Expression is not empty hence root component is not null.

§ linkTriggerTargets()

void 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()

Create trigger expression.

§ setEnabled()

void setEnabled ( bool  enabled)

Set expression is enabled.

§ setResult()

void setResult ( bool  result)

Set result.

§ setRootComponent()

void setRootComponent ( TSTriggerExpressionComponent  component)

Set root expression component or null if not set.


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