Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Classes | |
class | ActivateListener |
Trigger listener to enable forceField. More... | |
Public Member Functions | |
void | addListener (Listener listener) |
Add listener. More... | |
void | addToGameWorld () |
Add element to game world. More... | |
void | dispose () |
Dispose of behavior instance. More... | |
ECBehaviorCollider.Instance | getCollider () |
Collider behavior or null if not attached. More... | |
bool | getCustomForceFieldHandling () |
Force field parameters are handled by another behavior. More... | |
ECBehaviorForceField | getECBehavior () |
Behavior. More... | |
bool | getEnabled () |
Force field is enabled. More... | |
ForceField | getForceField () |
Force field. More... | |
ECBehaviorTriggered.Instance | getTrigger () |
Trigger enable or null. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
Instance | new (ECBehaviorForceField ecbehavior, BehaviorElement element) |
Create element. More... | |
void | notifyParametersChanged () |
Notify listeners force field parameters changed. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read element from file. More... | |
void | removeFromGameWorld () |
Remove element from game world. More... | |
void | removeListener (Listener listener) |
Remove listener. More... | |
void | setCustomForceFieldHandling (bool customForceFieldHandling) |
Set if force field parameters are handled by another behavior. More... | |
void | setEnabled (bool enabled) |
Set if force field is enabled. More... | |
void | stateChanged () |
State changed (visible, touchable). More... | |
void | toggle () |
Toggle force field enabled state. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
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... | |
bool | requiresEnterFrame () |
Behavior instance requires enterFrame() to be called. More... | |
bool | requiresThink () |
Behavior instance requires think() to be called. More... | |
void | think (float elapsed) |
Think about what to do for the next frame update. More... | |
Protected Member Functions | |
void | attachForceField (StubElement stub, ECBehaviorCollider.Instance collider) |
Attach force field to collider. More... | |
ForceField | createForceField (StubElement stub) |
Create forceField. More... | |
ECBehaviorTriggered.Instance | getTriggerBehavior () |
Get enable trigger behavior. 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.ECBehaviorForceField.Instance.addListener | ( | Listener | listener | ) |
Add listener.
void Dragengine.Scenery.ECBehaviorForceField.Instance.addToGameWorld | ( | ) |
Add element to game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
|
protected |
Attach force field to collider.
Default implementation calls ECComposeAttachResource.attach().
|
protected |
Create forceField.
Default implementation calls ECComposeForceField.createForceField().
void Dragengine.Scenery.ECBehaviorForceField.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
ECBehaviorCollider.Instance Dragengine.Scenery.ECBehaviorForceField.Instance.getCollider | ( | ) |
Collider behavior or null if not attached.
bool Dragengine.Scenery.ECBehaviorForceField.Instance.getCustomForceFieldHandling | ( | ) |
Force field parameters are handled by another behavior.
ECBehaviorForceField Dragengine.Scenery.ECBehaviorForceField.Instance.getECBehavior | ( | ) |
Behavior.
bool Dragengine.Scenery.ECBehaviorForceField.Instance.getEnabled | ( | ) |
Force field is enabled.
ForceField Dragengine.Scenery.ECBehaviorForceField.Instance.getForceField | ( | ) |
Force field.
ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorForceField.Instance.getTrigger | ( | ) |
Trigger enable or null.
|
protected |
Get enable trigger behavior.
Default implementation uses owner class trigger behavior. If getSyncTrigger() of parent ECBehaviorForceField is not null uses referenced behavior trigger behavior.
void Dragengine.Scenery.ECBehaviorForceField.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorForceField.Instance.new | ( | ECBehaviorForceField | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorForceField.Instance.notifyParametersChanged | ( | ) |
Notify listeners force field parameters changed.
Call this method after changing force field parameters other than (de)activating forceField.
void Dragengine.Scenery.ECBehaviorForceField.Instance.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read element from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorForceField.Instance.removeFromGameWorld | ( | ) |
Remove element from game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorForceField.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
void Dragengine.Scenery.ECBehaviorForceField.Instance.setCustomForceFieldHandling | ( | bool | customForceFieldHandling | ) |
Set if force field parameters are handled by another behavior.
void Dragengine.Scenery.ECBehaviorForceField.Instance.setEnabled | ( | bool | enabled | ) |
Set if force field is enabled.
void Dragengine.Scenery.ECBehaviorForceField.Instance.stateChanged | ( | ) |
State changed (visible, touchable).
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorForceField.Instance.toggle | ( | ) |
Toggle force field enabled state.
void Dragengine.Scenery.ECBehaviorForceField.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Writes the element to a file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.