Drag[en]gine Script Module DragonScript Script API  1.0
TSTriggerTable Class Reference
Inheritance diagram for TSTriggerTable:

Public Member Functions

void addTarget (TSTriggerTarget target)
 
void forEachTarget (Block ablock)
 Visit targets with block with TSTriggerTarget as only parameter. More...
 
TSTriggerTarget getTargetNamed (String name)
 
TSTriggerTarget getTargetNamedAddIfMissing (String name)
 
bool hasTargetNamed (String name)
 
TSTriggerTable new ()
 
void removeAllTargets ()
 
void removeTarget (TSTriggerTarget target)
 
void writeToFile (FileWriter writer)
 

Detailed Description

Manages triggers using a trigger table. 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.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ addTarget()

void addTarget ( TSTriggerTarget  target)

Adds a target.

§ forEachTarget()

void forEachTarget ( Block  ablock)

Visit targets with block with TSTriggerTarget as only parameter.

§ getTargetNamed()

TSTriggerTarget getTargetNamed ( String  name)

Retrieves the target with the given name or null if not found.

§ getTargetNamedAddIfMissing()

TSTriggerTarget getTargetNamedAddIfMissing ( String  name)

Retrieves the target with the given name adding it if not existing.

§ hasTargetNamed()

bool hasTargetNamed ( String  name)

Determines if a target with the given name exists or not.

§ new()

TSTriggerTable new ( )

Creates a new trigger manager.

§ removeAllTargets()

void removeAllTargets ( )

Removes all targets.

§ removeTarget()

void removeTarget ( TSTriggerTarget  target)

Removes a target.

§ writeToFile()

void writeToFile ( FileWriter  writer)

Writes the trigger table to a file.


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