|
Drag[en]gine Script Module DragonScript 1.35
|
Behavior tree context with link to BAAIBehaviorTree. More...
Public Member Functions | |
| BehaviorElement | getActor () |
| Actor. | |
| BAAIBehaviorTree | getAI () |
| AI. | |
| BTContextAI | new (BAAIBehaviorTree ai, BehaviorTree behaviorTree) |
| Create context. | |
| BTContextAI | new (BAAIBehaviorTree ai, BTContext context) |
| Create copy of context. | |
| BTContextAI | new (BAAIBehaviorTree ai, BTContext context, BehaviorTree behaviorTree) |
| Create copy of context using different behavior tree. | |
| BTContextAI | new (BTContextAI context) |
| Create copy of context. | |
| Public Member Functions inherited from Dragengine.BehaviorTreeSystem.BTContext | |
| StateBackup | createBackupState () |
| Back up state. | |
| String | debugGetCurrentRule () |
| Get string path describing current rule for debug purpose. | |
| String | debugGetRulePath (BTRule rule) |
| Get string path describing rule for debug purpose. | |
| void | forEachAction (Block ablock) |
| Visit actions using block with parameters String (name and BTAction (action). | |
| void | forEachCondition (Block ablock) |
| Visit conditions using block with parameters String (name and BTCondition (condition). | |
| BTAction | getAction (String name) |
| Action for name or null if absent. | |
| int | getActionCount () |
| Number of actions. | |
| bool | getActionFirstRun () |
| Action runs for the first time after the current rule changed. | |
| BehaviorTree | getBehaviorTree () |
| Behavior tree. | |
| BTCondition | getCondition (String name) |
| Condition for name or null if absent. | |
| int | getConditionCount () |
| Number of conditions. | |
| Console | getConsole () |
| Console or null if not wishing to log anything. | |
| BTRule | getCurrentRule () |
| Current rule. | |
| BTResult | getLastResult () |
| Last result. | |
| String | getLoggingName () |
| Logging name to tell apart logs. | |
| bool | getLogRuleChanges () |
| Log behavior tree rule changes. | |
| bool | getLogSteps () |
| Log behavior tree steps. | |
| int | getRunAwayLimit () |
| Run away limit. | |
| bool | hasAction (String name) |
| Action is present. | |
| bool | hasCondition (String name) |
| Condition is present. | |
| BTContext | new (BehaviorTree behaviorTree) |
| Create behavior tree context. | |
| BTContext | new (BTContext context) |
| Create copy of behavior tree context. | |
| BTContext | new (BTContext context, BehaviorTree behaviorTree) |
| Create copy of behavior tree context but using a different behavior tree. | |
| void | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read state from file. | |
| void | removeAction (String name) |
| Remove action. | |
| void | removeAllActions () |
| Remove all actions. | |
| void | removeAllConditions () |
| Remove all conditions. | |
| void | removeCondition (String name) |
| Remove condition. | |
| void | reset () |
| Reset to initial state. | |
| void | restoreBackupState (StateBackup state) |
| Restore state from backup. | |
| void | setAction (String name, Block action) |
| Set action for name using block. | |
| void | setAction (String name, BTAction action) |
| Set action for name. | |
| void | setActionFirstRun (bool firstRun) |
| Set action runs for the first time after the current rule changed. | |
| void | setBehaviorTree (BehaviorTree behaviorTree) |
| Set behavior tree and reset state. | |
| void | setCondition (String name, Block condition) |
| Set condition for name using block. | |
| void | setCondition (String name, BTCondition condition) |
| Set condition for name. | |
| void | setConsole (Console console) |
| Set console or null if not wishing to log anything. | |
| void | setCurrentRule (BTRule rule) |
| Set current rule. | |
| void | setCurrentRuleByID (String id) |
| Set current rule by identifier. | |
| void | setLoggingName (String name) |
| Set logging name to tell apart logs. | |
| void | setLogRuleChanges (bool logRuleChanges) |
| Set log behavior tree rule changes. | |
| void | setLogSteps (bool logSteps) |
| Set log behavior tree steps. | |
| void | setRunAwayLimit (int limit) |
| Set run away limit. | |
| bool | stepBehaviorTree () |
| Step behavior tree. | |
| void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
| Write state to file. | |
Public Attributes | |
| BAAIBehaviorTree | pAI |
| AI. | |
| Public Attributes inherited from Dragengine.BehaviorTreeSystem.BTContext | |
| bool | pActionFirstRun |
| Dictionary | pActions |
| BehaviorTree | pBehaviorTree |
| Dictionary | pConditions |
| Console | pConsole |
| BTRule | pCurrentRule |
| BTResult | pLastResult |
| String | pLoggingName |
| bool | pLogRuleChanges |
| bool | pLogSteps |
| Array | pRunAwayList |
Additional Inherited Members | |
| Protected Member Functions inherited from Dragengine.BehaviorTreeSystem.BTContext | |
| void | onCurrentRuleChanged () |
| Hook method called if setCurrentRule() is called. | |
Behavior tree context with link to BAAIBehaviorTree.
| BehaviorElement Dragengine.Scenery.BAAIBehaviorTree.BTContextAI.getActor | ( | ) |
| BAAIBehaviorTree Dragengine.Scenery.BAAIBehaviorTree.BTContextAI.getAI | ( | ) |
| BTContextAI Dragengine.Scenery.BAAIBehaviorTree.BTContextAI.new | ( | BAAIBehaviorTree | ai, |
| BehaviorTree | behaviorTree ) |
Create context.
Referenced by getActor(), getAI(), and new().
| BTContextAI Dragengine.Scenery.BAAIBehaviorTree.BTContextAI.new | ( | BAAIBehaviorTree | ai, |
| BTContext | context ) |
Create copy of context.
References new().
| BTContextAI Dragengine.Scenery.BAAIBehaviorTree.BTContextAI.new | ( | BAAIBehaviorTree | ai, |
| BTContext | context, | ||
| BehaviorTree | behaviorTree ) |
Create copy of context using different behavior tree.
References pAI.
| BTContextAI Dragengine.Scenery.BAAIBehaviorTree.BTContextAI.new | ( | BTContextAI | context | ) |
Create copy of context.
References pAI.
| BAAIBehaviorTree Dragengine.Scenery.BAAIBehaviorTree.BTContextAI.pAI |
AI.
Referenced by getActor(), getAI(), new(), and new().