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

Condition behavior tree action. More...

Inheritance diagram for Dragengine.BehaviorTreeSystem.BTConditionAction:
Dragengine.BehaviorTreeSystem.BTAction

Public Member Functions

bool evaluate (BTContext context, Dictionary parameters)
 Evaluate condition. More...
 
BTConditionAction new ()
 Create action. More...
 
- Public Member Functions inherited from Dragengine.BehaviorTreeSystem.BTAction
BTResult runAction (BTContext context, Dictionary parameters)
 Run action. More...
 

Detailed Description

Condition behavior tree action.

Convenience implementation of an action returning BTResult.success if the evaluate() method returns true otherwise BTResult.failure is returned.

Member Function Documentation

◆ evaluate()

bool Dragengine.BehaviorTreeSystem.BTConditionAction.evaluate ( 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.

◆ new()

BTConditionAction Dragengine.BehaviorTreeSystem.BTConditionAction.new ( )

Create action.


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