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

Behavior tree rule succeeding if no condition evaluates to false. More...

Inheritance diagram for Dragengine.BehaviorTreeSystem.BTRuleSuccess:
Dragengine.BehaviorTreeSystem.BTRule

Public Member Functions

BTRuleSuccess new (String id)
 Create behavior tree rule. More...
 
BTResult run (BTContext context)
 Run action. More...
 
String toString ()
 
- Public Member Functions inherited from Dragengine.BehaviorTreeSystem.BTRule
void addCondition (String condition)
 Add condition. More...
 
bool evaluateConditions (BTContext context)
 Evaluate all conditions. More...
 
String findCondition (Block ablock)
 Find condition with block with parameter String. More...
 
void forEachCondition (Block ablock)
 Visit conditions with block with parameter String. More...
 
String getConditionAt (int index)
 Get condition at index. More...
 
int getConditionCount ()
 Number of conditions. More...
 
ConditionMode getConditionMode ()
 Condition mode from eConditionModes. More...
 
String getID ()
 Unique rule identifier or null. More...
 
Dictionary getParameters ()
 Parameters as Dictionary of type String key and String value. More...
 
BTRule getParent ()
 Parent rule or null if this is the root rule in a behavior tree. More...
 
int indexOfCondition (String condition)
 Index of condition or -1 if absent. More...
 
void removeAllConditions ()
 Remove all conditions. More...
 
void removeCondition (String condition)
 Remove condition. More...
 
void setConditionMode (ConditionMode mode)
 Set condition mode from eConditionModes. More...
 
void setParent (BTRule rule)
 Set parent rule or null if this is the root rule in a behavior tree. More...
 

Additional Inherited Members

- Public Attributes inherited from Dragengine.BehaviorTreeSystem.BTRule
ConditionMode pConditionMode
 
Array pConditions
 
String pID
 
Dictionary pParameters
 
WeakReference pParent
 

Detailed Description

Behavior tree rule succeeding if no condition evaluates to false.

Member Function Documentation

◆ new()

BTRuleSuccess Dragengine.BehaviorTreeSystem.BTRuleSuccess.new ( String  id)

Create behavior tree rule.

Reimplemented from Dragengine.BehaviorTreeSystem.BTRule.

◆ run()

BTResult Dragengine.BehaviorTreeSystem.BTRuleSuccess.run ( BTContext  context)

Run action.

◆ toString()

String Dragengine.BehaviorTreeSystem.BTRuleSuccess.toString ( )

String representation of object.


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