Drag[en]gine Script Module DragonScript 1.23
|
Behavior instance. More...
Public Member Functions | |
void | addToGameWorld () |
Add element to game world. | |
void | dispose () |
Dispose of behavior instance. | |
ECBehaviorCollider.Instance | getCollider () |
Collider behavior or null if not attached. | |
ECBehaviorNavigationSpace | getECBehavior () |
Behavior. | |
NavigationSpace | getNavigationSpace () |
NavigationSpace. | |
void | init (StubElement stub) |
Initialize element from stub. | |
Instance | new (ECBehaviorNavigationSpace ecbehavior, BehaviorElement element) |
Create element. | |
void | removeFromGameWorld () |
Remove element from game world. | |
![]() | |
void | attachToParent (Element parent) |
Attach element to object set by the mapper in the IGDE World Editor. | |
void | enterFrame () |
Frame update started. | |
void | geometryChanged () |
Position or orientation changed. | |
BehaviorElement | getElement () |
Behavior element to apply behavior to. | |
int | getInstanceIndex () |
Behavior instance index. | |
DefaultECBehaviorInstance | new (BehaviorElement element) |
Create default composeable instance. | |
void | postThink (float elapsed) |
Post thinking after physics processing is finished. | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read behavior instance from file. | |
bool | requiresEnterFrame () |
Behavior instance requires enterFrame() to be called. | |
bool | requiresThink () |
Behavior instance requires think() to be called. | |
void | stateChanged () |
State changed (visble, touchable). | |
void | think (float elapsed) |
Think about what to do for the next frame update. | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write behavior instance to file. | |
Protected Member Functions | |
void | attachNavigationSpace (StubElement stub, ECBehaviorCollider.Instance collider) |
Attach navigation space to collider. | |
NavigationSpace | createNavigationSpace (StubElement stub) |
Create navigation space. | |
![]() | |
void | setRequiresEnterFrame (bool required) |
Set if behavior instance requires enterFrame() to be called. | |
void | setRequiresThink (bool required) |
Set if behavior instance requires think() to be called. | |
Behavior instance.
void Dragengine.Scenery.ECBehaviorNavigationSpace.Instance.addToGameWorld | ( | ) |
Add element to game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
|
protected |
Attach navigation space to collider.
Default implementation calls ECComposeAttachResource.attach().
|
protected |
Create navigation space.
Default implementation calls ECComposeNavigation.createNavigationSpace().
void Dragengine.Scenery.ECBehaviorNavigationSpace.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
ECBehaviorCollider.Instance Dragengine.Scenery.ECBehaviorNavigationSpace.Instance.getCollider | ( | ) |
Collider behavior or null if not attached.
ECBehaviorNavigationSpace Dragengine.Scenery.ECBehaviorNavigationSpace.Instance.getECBehavior | ( | ) |
Behavior.
NavigationSpace Dragengine.Scenery.ECBehaviorNavigationSpace.Instance.getNavigationSpace | ( | ) |
NavigationSpace.
void Dragengine.Scenery.ECBehaviorNavigationSpace.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorNavigationSpace.Instance.new | ( | ECBehaviorNavigationSpace | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorNavigationSpace.Instance.removeFromGameWorld | ( | ) |
Remove element from game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.