Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Classes | |
class | TriggedListener |
Trigger listener. More... | |
Public Member Functions | |
void | addListener (Listener listener) |
Add listener. More... | |
Dictionary | debugInformation () |
Behavior debug information as Dictionary. More... | |
void | dispose () |
Dispose of composeable instance. More... | |
ECBehaviorTriggered | getECBehavior () |
Behavior. More... | |
bool | getState () |
Trigger expression state. More... | |
bool | getState (bool defaultValue) |
Trigger expression state or default value if absent. More... | |
TSTriggerExpression | getTriggerExpression () |
Trigger expression or null if not used. More... | |
TSTriggerTable | getTriggerTable () |
Trigger table to link trigger expression to. More... | |
bool | hasTriggerExpression () |
Trigger expression is present. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
Instance | new (ECBehaviorTriggered ecbehavior, BehaviorElement element) |
Create element. More... | |
void | notifyListeners () |
Notify listener trigger expression changed. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read behavior from file. More... | |
void | removeListener (Listener listener) |
Remove listener. 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 | 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... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write behavior instance to file. More... | |
Public Attributes | |
ECBehaviorTriggered | pECBehavior |
Array | pListeners |
bool | pLoading |
TSTriggerExpression | pTriggerExpression |
TSTriggerTable | pTriggerTable |
Protected Member Functions | |
void | setTriggerExpression (TSTriggerExpression expression) |
Set trigger expression or null if not used. More... | |
void | setTriggerTable (TSTriggerTable triggerTable) |
Trigger table to link trigger expression to. 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.ECBehaviorTriggered.Instance.addListener | ( | Listener | listener | ) |
Add listener.
Dictionary Dragengine.Scenery.ECBehaviorTriggered.Instance.debugInformation | ( | ) |
Behavior debug information as Dictionary.
void Dragengine.Scenery.ECBehaviorTriggered.Instance.dispose | ( | ) |
Dispose of composeable instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
ECBehaviorTriggered Dragengine.Scenery.ECBehaviorTriggered.Instance.getECBehavior | ( | ) |
Behavior.
bool Dragengine.Scenery.ECBehaviorTriggered.Instance.getState | ( | ) |
Trigger expression state.
bool Dragengine.Scenery.ECBehaviorTriggered.Instance.getState | ( | bool | defaultValue | ) |
Trigger expression state or default value if absent.
TSTriggerExpression Dragengine.Scenery.ECBehaviorTriggered.Instance.getTriggerExpression | ( | ) |
Trigger expression or null if not used.
TSTriggerTable Dragengine.Scenery.ECBehaviorTriggered.Instance.getTriggerTable | ( | ) |
Trigger table to link trigger expression to.
bool Dragengine.Scenery.ECBehaviorTriggered.Instance.hasTriggerExpression | ( | ) |
Trigger expression is present.
void Dragengine.Scenery.ECBehaviorTriggered.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorTriggered.Instance.new | ( | ECBehaviorTriggered | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorTriggered.Instance.notifyListeners | ( | ) |
Notify listener trigger expression changed.
void Dragengine.Scenery.ECBehaviorTriggered.Instance.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read behavior from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorTriggered.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
|
protected |
Set trigger expression or null if not used.
|
protected |
Trigger table to link trigger expression to.
ECBehaviorTriggered Dragengine.Scenery.ECBehaviorTriggered.Instance.pECBehavior |
Array Dragengine.Scenery.ECBehaviorTriggered.Instance.pListeners |
bool Dragengine.Scenery.ECBehaviorTriggered.Instance.pLoading |
TSTriggerExpression Dragengine.Scenery.ECBehaviorTriggered.Instance.pTriggerExpression |
TSTriggerTable Dragengine.Scenery.ECBehaviorTriggered.Instance.pTriggerTable |