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

Base class for behavior tree rules using child rules. More...

Inheritance diagram for Dragengine.BehaviorTreeSystem.BTRuleList:
Dragengine.BehaviorTreeSystem.BTRule Dragengine.BehaviorTreeSystem.BTRuleChoice Dragengine.BehaviorTreeSystem.BTRuleSequence

Public Member Functions

void addRule (BTRule rule)
 Add rule. More...
 
BTRule find (Block ablock)
 Find rule with block with parameter BTRule. More...
 
void forEach (Block ablock)
 Visit rules with block with parameter BTRule. More...
 
BTRule getRuleAt (int index)
 Get rule at index. More...
 
int getRuleCount ()
 Number of rules. More...
 
int indexOfRule (BTRule rule)
 Index of rule or -1 if absent. More...
 
BTRuleList new (String id)
 Create behavior tree rule. More...
 
void removeAllRules ()
 Remove all rules. More...
 
void removeRule (BTRule rule)
 Remove rule. More...
 
- 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...
 

Public Attributes

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

Detailed Description

Base class for behavior tree rules using child rules.

Member Function Documentation

◆ addRule()

void Dragengine.BehaviorTreeSystem.BTRuleList.addRule ( BTRule  rule)

Add rule.

◆ find()

BTRule Dragengine.BehaviorTreeSystem.BTRuleList.find ( Block  ablock)

Find rule with block with parameter BTRule.

◆ forEach()

void Dragengine.BehaviorTreeSystem.BTRuleList.forEach ( Block  ablock)

Visit rules with block with parameter BTRule.

◆ getRuleAt()

BTRule Dragengine.BehaviorTreeSystem.BTRuleList.getRuleAt ( int  index)

Get rule at index.

◆ getRuleCount()

int Dragengine.BehaviorTreeSystem.BTRuleList.getRuleCount ( )

Number of rules.

◆ indexOfRule()

int Dragengine.BehaviorTreeSystem.BTRuleList.indexOfRule ( BTRule  rule)

Index of rule or -1 if absent.

◆ new()

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

◆ removeAllRules()

void Dragengine.BehaviorTreeSystem.BTRuleList.removeAllRules ( )

Remove all rules.

◆ removeRule()

void Dragengine.BehaviorTreeSystem.BTRuleList.removeRule ( BTRule  rule)

Remove rule.

Member Data Documentation

◆ pRules

Array Dragengine.BehaviorTreeSystem.BTRuleList.pRules

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