Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
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.
BTConditionAction new ()
 Create action.
Public Member Functions inherited from Dragengine.BehaviorTreeSystem.BTAction
BTResult runAction (BTContext context, Dictionary parameters)
 Run action.

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.

References evaluate(), and Dragengine.BehaviorTreeSystem.BTAction.runAction().

Referenced by evaluate().

◆ new()

BTConditionAction Dragengine.BehaviorTreeSystem.BTConditionAction.new ( )

Create action.

References new().

Referenced by new().


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