Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Classes | |
class | ActionFlagsCheck |
Behavior tree action "Flags.check". More... | |
class | ActionFlagsSet |
Behavior tree action "flags.set". More... | |
class | ConditionFlagsState |
Behavior tree condition "flags.state". More... | |
Public Member Functions | |
void | dispose () |
Dispose of behavior instance. More... | |
void | dispose () |
Dispose of behavior. More... | |
ECBehaviorBehaviorTree.Instance | getBehaviorTree () |
Behavior tree behavior or null. More... | |
ECBehaviorBehaviorTree | getBehaviorTree () |
Behavior tree behavior. More... | |
ECBehaviorBehaviorTreeFlags | getECBehavior () |
Behavior. More... | |
bool | getFlag (String name) |
Flag is set. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
Instance | instance (BehaviorElement element) |
Get instance in element from owner element class. More... | |
Instance | new (BehaviorElementClass eclass, ECBehaviorBehaviorTree behaviorTree) |
Create behavior element class. More... | |
Instance | new (BehaviorElementClass eclass, ECBehaviorBehaviorTree behaviorTree, String id) |
Instance | new (ECBehaviorBehaviorTreeFlags ecbehavior, BehaviorElement element) |
Create element. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read element from file. More... | |
void | setFlag (String name, bool flagged) |
Set flag. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
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 | 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... | |
void | think (float elapsed) |
Think about what to do for the next frame update. More... | |
Static Public Member Functions | |
static ECBehaviorBehaviorTreeFlags | getBehaviorIn (BehaviorElementClass eclass) |
Get behavior in element class or null if absent. More... | |
Public Attributes | |
ECBehaviorBehaviorTree.Instance | pBehaviorTree |
ECBehaviorBehaviorTree | pBehaviorTree |
ECBehaviorBehaviorTreeFlags | pECBehavior |
Dictionary | pFlags |
Additional Inherited Members | |
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.ECBehaviorBehaviorTreeFlags.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.dispose | ( | ) |
Dispose of behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
|
static |
Get behavior in element class or null if absent.
Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorBehaviorTree.
ECBehaviorBehaviorTree.Instance Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.getBehaviorTree | ( | ) |
Behavior tree behavior or null.
ECBehaviorBehaviorTree Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.getBehaviorTree | ( | ) |
Behavior tree behavior.
ECBehaviorBehaviorTreeFlags Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.getECBehavior | ( | ) |
Behavior.
bool Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.getFlag | ( | String | name | ) |
Flag is set.
void Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.instance | ( | BehaviorElement | element | ) |
Get instance in element from owner element class.
Instance Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorBehaviorTree | behaviorTree | ||
) |
Create behavior element class.
Instance Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorBehaviorTree | behaviorTree, | ||
String | id | ||
) |
Instance Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.new | ( | ECBehaviorBehaviorTreeFlags | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read element from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.setFlag | ( | String | name, |
bool | flagged | ||
) |
Set flag.
void Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Writes the element to a file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
ECBehaviorBehaviorTree.Instance Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.pBehaviorTree |
ECBehaviorBehaviorTree Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.pBehaviorTree |
ECBehaviorBehaviorTreeFlags Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.pECBehavior |
Dictionary Dragengine.Scenery.ECBehaviorBehaviorTreeFlags.Instance.pFlags |