Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Public Member Functions | |
void | addListener (Listener listener) |
Add listener. More... | |
void | dispose () |
Dispose of composeable instance. More... | |
BehaviorTree | getBehaviorTree () |
Behavior tree. More... | |
BTContext | getContext () |
Context. More... | |
ECBehaviorBehaviorTree | getECBehavior () |
Behavior. More... | |
bool | getFailed () |
Behavior tree failed and will not run again. More... | |
bool | getRun () |
Run behavior tree on element thinking. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
Instance | new (ECBehaviorBehaviorTree ecbehavior, BehaviorElement element) |
Create element. More... | |
void | notifyRestarted (BTContext context) |
Notify listeners behavior tree restarted. More... | |
void | removeListener (Listener listener) |
Remove listener. More... | |
void | setAction (String name, Block actionBlock) |
Set action to behavior tree using block. More... | |
void | setAction (String name, BTAction action) |
Set action to behavior tree. More... | |
void | setCondition (String name, Block conditionBlock) |
Set condition to behavior tree using block. More... | |
void | setCondition (String name, BTCondition condition) |
Set condition to behavior tree. More... | |
void | think (float elapsed) |
Think about what the element is going to do in this frame. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write element to file. More... | |
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
void | addToGameWorld () |
Add element to game world. More... | |
void | attachToParent (Element parent) |
Attach element to object set by the mapper in the IGDE World Editor. More... | |
void | enterFrame () |
Frame update started. More... | |
void | geometryChanged () |
Position or orientation changed. More... | |
BehaviorElement | getElement () |
Behavior element to apply behavior to. More... | |
int | getInstanceIndex () |
Behavior instance index. More... | |
DefaultECBehaviorInstance | new (BehaviorElement element) |
Create default composeable instance. More... | |
void | postThink (float elapsed) |
Post thinking after physics processing is finished. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read behavior instance from file. More... | |
void | removeFromGameWorld () |
Remove element from game world. More... | |
bool | requiresEnterFrame () |
Behavior instance requires enterFrame() to be called. More... | |
bool | requiresThink () |
Behavior instance requires think() to be called. More... | |
void | stateChanged () |
State changed (visble, touchable). More... | |
Public Attributes | |
BehaviorTree | pBehaviorTree |
BTContext | pContext |
ECBehaviorBehaviorTree | pECBehavior |
bool | pFailed |
Array | pListeners |
bool | pRun |
Protected Member Functions | |
BTContext | createContext (StubElement stub, BehaviorTree behaviorTree) |
Create context. More... | |
BehaviorTree | loadBehaviorTree (StubElement stub) |
Load behavior tree. More... | |
void | restartContext () |
Restart behavior tree to run it again. More... | |
Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
void | setRequiresEnterFrame (bool required) |
Set if behavior instance requires enterFrame() to be called. More... | |
void | setRequiresThink (bool required) |
Set if behavior instance requires think() to be called. More... | |
Behavior instance.
void Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.addListener | ( | Listener | listener | ) |
Add listener.
|
protected |
Create context.
void Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.dispose | ( | ) |
Dispose of composeable instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
BehaviorTree Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.getBehaviorTree | ( | ) |
Behavior tree.
BTContext Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.getContext | ( | ) |
Context.
ECBehaviorBehaviorTree Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.getECBehavior | ( | ) |
Behavior.
bool Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.getFailed | ( | ) |
Behavior tree failed and will not run again.
bool Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.getRun | ( | ) |
Run behavior tree on element thinking.
void Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
|
protected |
Load behavior tree.
Instance Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.new | ( | ECBehaviorBehaviorTree | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.notifyRestarted | ( | BTContext | context | ) |
Notify listeners behavior tree restarted.
void Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
|
protected |
Restart behavior tree to run it again.
void Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.setAction | ( | String | name, |
Block | actionBlock | ||
) |
Set action to behavior tree using block.
Block receives arguments BTContext context and Dictionary parameters.
void Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.setAction | ( | String | name, |
BTAction | action | ||
) |
Set action to behavior tree.
void Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.setCondition | ( | String | name, |
Block | conditionBlock | ||
) |
Set condition to behavior tree using block.
Block receives arguments BTContext context and Dictionary parameters and returns bool.
void Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.setCondition | ( | String | name, |
BTCondition | condition | ||
) |
Set condition to behavior tree.
void Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.think | ( | float | elapsed | ) |
Think about what the element is going to do in this frame.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write element to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
BehaviorTree Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.pBehaviorTree |
BTContext Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.pContext |
ECBehaviorBehaviorTree Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.pECBehavior |
bool Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.pFailed |
Array Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.pListeners |
bool Dragengine.Scenery.ECBehaviorBehaviorTree.Instance.pRun |