Drag[en]gine Script Module DragonScript  1.23
Dragengine.TriggerSystem.TSTriggerTable Class Reference

Table of trigger targets. More...

Inheritance diagram for Dragengine.TriggerSystem.TSTriggerTable:

Public Member Functions

void add (TSTriggerTarget target)
 Add target. More...
 
void dispose ()
 Dispose of trigger table. More...
 
TSTriggerTarget getNamed (StringID name)
 Named target or null if absent. More...
 
TSTriggerTarget getOrAddNamed (StringID name)
 Named target adding it if absent. More...
 
bool hasNamed (StringID name)
 Named target is present. More...
 
TSTriggerTable new ()
 Create trigger table. More...
 
void readFromFile (FileReader reader)
 Read trigger table from file. More...
 
void removeAll ()
 Dispose of all trigger targets. More...
 
void removeTarget (TSTriggerTarget target)
 Remove target. More...
 
void writeToFile (FileWriter writer)
 Write trigger table to file. More...
 

Public Attributes

Dictionary pTargets
 

Detailed Description

Table of trigger targets.

Triggers add named targets to the table. Each target is a boolean value. Triggers can set or reset the target. Whenever the state of the target changes all listeners are notified. Elements using a trigger expression add themselves to all the targets they use in the trigger expression.

Member Function Documentation

◆ add()

void Dragengine.TriggerSystem.TSTriggerTable.add ( TSTriggerTarget  target)

Add target.

Exceptions
EInvalidParamNamed target is present.

◆ dispose()

void Dragengine.TriggerSystem.TSTriggerTable.dispose ( )

Dispose of trigger table.

◆ getNamed()

TSTriggerTarget Dragengine.TriggerSystem.TSTriggerTable.getNamed ( StringID  name)

Named target or null if absent.

◆ getOrAddNamed()

TSTriggerTarget Dragengine.TriggerSystem.TSTriggerTable.getOrAddNamed ( StringID  name)

Named target adding it if absent.

◆ hasNamed()

bool Dragengine.TriggerSystem.TSTriggerTable.hasNamed ( StringID  name)

Named target is present.

◆ new()

TSTriggerTable Dragengine.TriggerSystem.TSTriggerTable.new ( )

Create trigger table.

◆ readFromFile()

void Dragengine.TriggerSystem.TSTriggerTable.readFromFile ( FileReader  reader)

Read trigger table from file.

◆ removeAll()

void Dragengine.TriggerSystem.TSTriggerTable.removeAll ( )

Dispose of all trigger targets.

◆ removeTarget()

void Dragengine.TriggerSystem.TSTriggerTable.removeTarget ( TSTriggerTarget  target)

Remove target.

◆ writeToFile()

void Dragengine.TriggerSystem.TSTriggerTable.writeToFile ( FileWriter  writer)

Write trigger table to file.

Member Data Documentation

◆ pTargets

Dictionary Dragengine.TriggerSystem.TSTriggerTable.pTargets

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