Drag[en]gine Script Module DragonScript  1.23
Dragengine.BehaviorTreeSystem.BTConditionTrigger Class Reference

Behavior tree condition evaluating trigger expression. More...

Inheritance diagram for Dragengine.BehaviorTreeSystem.BTConditionTrigger:
Dragengine.BehaviorTreeSystem.BTCondition

Classes

enum  TestMode
 Test mode. More...
 

Public Member Functions

bool evaluateCondition (BTContext context, Dictionary parameters)
 Evaluate condition. More...
 
StringID getName ()
 Name of the trigger to evaluate. More...
 
TestMode getTestMode ()
 TestMode. More...
 
TSTriggerTable getTriggerTable ()
 Trigger table. More...
 
TSTriggerTarget getTriggerTarget ()
 Cached trigger target. More...
 
BTConditionTrigger negated ()
 Create condition testing the exact opposite. More...
 
BTConditionTrigger new (StringID name, TestMode testMode)
 Create condition. More...
 
BTConditionTrigger new (TSTriggerTable triggerTable, StringID name, TestMode testMode)
 Create condition. More...
 
void setName (StringID name)
 Set name of the trigger to evaluate. More...
 
void setTestMode (TestMode testMode)
 Set action. More...
 

Public Attributes

StringID pName
 
TestMode pTestMode
 
TSTriggerTable pTriggerTable
 
TSTriggerTarget pTriggerTarget
 

Protected Member Functions

void setTriggerTable (TSTriggerTable triggerTable)
 Set trigger table. More...
 

Detailed Description

Behavior tree condition evaluating trigger expression.

Member Function Documentation

◆ evaluateCondition()

bool Dragengine.BehaviorTreeSystem.BTConditionTrigger.evaluateCondition ( BTContext  context,
Dictionary  parameters 
)

Evaluate condition.

Parameters
parametersDictionary with parameters of type String key and String value. Do not change the content of the dictionary as it is shared.

Implements Dragengine.BehaviorTreeSystem.BTCondition.

◆ getName()

StringID Dragengine.BehaviorTreeSystem.BTConditionTrigger.getName ( )

Name of the trigger to evaluate.

◆ getTestMode()

TestMode Dragengine.BehaviorTreeSystem.BTConditionTrigger.getTestMode ( )

◆ getTriggerTable()

TSTriggerTable Dragengine.BehaviorTreeSystem.BTConditionTrigger.getTriggerTable ( )

Trigger table.

◆ getTriggerTarget()

TSTriggerTarget Dragengine.BehaviorTreeSystem.BTConditionTrigger.getTriggerTarget ( )

Cached trigger target.

◆ negated()

BTConditionTrigger Dragengine.BehaviorTreeSystem.BTConditionTrigger.negated ( )

Create condition testing the exact opposite.

◆ new() [1/2]

BTConditionTrigger Dragengine.BehaviorTreeSystem.BTConditionTrigger.new ( StringID  name,
TestMode  testMode 
)

Create condition.

◆ new() [2/2]

BTConditionTrigger Dragengine.BehaviorTreeSystem.BTConditionTrigger.new ( TSTriggerTable  triggerTable,
StringID  name,
TestMode  testMode 
)

Create condition.

◆ setName()

void Dragengine.BehaviorTreeSystem.BTConditionTrigger.setName ( StringID  name)

Set name of the trigger to evaluate.

◆ setTestMode()

void Dragengine.BehaviorTreeSystem.BTConditionTrigger.setTestMode ( TestMode  testMode)

Set action.

◆ setTriggerTable()

void Dragengine.BehaviorTreeSystem.BTConditionTrigger.setTriggerTable ( TSTriggerTable  triggerTable)
protected

Set trigger table.

Member Data Documentation

◆ pName

StringID Dragengine.BehaviorTreeSystem.BTConditionTrigger.pName

◆ pTestMode

TestMode Dragengine.BehaviorTreeSystem.BTConditionTrigger.pTestMode

◆ pTriggerTable

TSTriggerTable Dragengine.BehaviorTreeSystem.BTConditionTrigger.pTriggerTable

◆ pTriggerTarget

TSTriggerTarget Dragengine.BehaviorTreeSystem.BTConditionTrigger.pTriggerTarget

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