Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Classes | |
class | TimerListener |
Trigger listener. More... | |
Public Member Functions | |
void | addToGameWorld () |
Add element to game world. More... | |
void | armTimer () |
Arm timer if timeout is larger than 0 otherwise operate target immediately. More... | |
void | dispose () |
Dispose of composeable instance. More... | |
bool | getCancelOnReset () |
Trigger timer is cancelled if trigger expression evaluates to false. More... | |
ECBehaviorTimer | getECBehavior () |
Behavior. More... | |
bool | getFireOnTimeout () |
Target is fired (true) or reset (false) after timeout elapses. More... | |
bool | getFullReset () |
Full reset target instead of simple reset. More... | |
bool | getPulse () |
Pulse target if timeout elapses. More... | |
float | getRemainingTime () |
Remaining time until timeout. More... | |
bool | getStartActivated () |
Trigger starts out activated. More... | |
TSNamedTriggerTarget | getTarget () |
Trigger target or null. More... | |
float | getTimeout () |
Time in seconds until target is fired/reset after expression becomes true. More... | |
bool | getTimeoutRearm () |
Rearm trigger on timeout if still enabled. More... | |
float | getTimeoutSpread () |
Random timeout spread in seconds. More... | |
bool | getTimerRunning () |
Timer is running. More... | |
ECBehaviorTriggered.Instance | getTrigger () |
Trigger or null. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
Instance | new (ECBehaviorTimer ecbehavior, BehaviorElement element) |
Create element. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read behavior instance from file. More... | |
void | removeFromGameWorld () |
Remove element from game world. More... | |
void | removeListener (Listener listener) |
Remove listener. 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 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 | stateChanged () |
State changed (visble, touchable). More... | |
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.ECBehaviorTimer.Instance.addToGameWorld | ( | ) |
Add element to game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorTimer.Instance.armTimer | ( | ) |
Arm timer if timeout is larger than 0 otherwise operate target immediately.
void Dragengine.Scenery.ECBehaviorTimer.Instance.dispose | ( | ) |
Dispose of composeable instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
bool Dragengine.Scenery.ECBehaviorTimer.Instance.getCancelOnReset | ( | ) |
Trigger timer is cancelled if trigger expression evaluates to false.
ECBehaviorTimer Dragengine.Scenery.ECBehaviorTimer.Instance.getECBehavior | ( | ) |
Behavior.
bool Dragengine.Scenery.ECBehaviorTimer.Instance.getFireOnTimeout | ( | ) |
Target is fired (true) or reset (false) after timeout elapses.
bool Dragengine.Scenery.ECBehaviorTimer.Instance.getFullReset | ( | ) |
Full reset target instead of simple reset.
bool Dragengine.Scenery.ECBehaviorTimer.Instance.getPulse | ( | ) |
Pulse target if timeout elapses.
If FireOnTimeout is true invokes fire() then reset()/fullReset() on the target. If FireOnTimeout is false invokes reset()/fullReset() then fire() on the target. Using pulse avoids the need to use two TriggerTimer to trigger a target multiple times in a row.
float Dragengine.Scenery.ECBehaviorTimer.Instance.getRemainingTime | ( | ) |
Remaining time until timeout.
bool Dragengine.Scenery.ECBehaviorTimer.Instance.getStartActivated | ( | ) |
Trigger starts out activated.
TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorTimer.Instance.getTarget | ( | ) |
Trigger target or null.
float Dragengine.Scenery.ECBehaviorTimer.Instance.getTimeout | ( | ) |
Time in seconds until target is fired/reset after expression becomes true.
bool Dragengine.Scenery.ECBehaviorTimer.Instance.getTimeoutRearm | ( | ) |
Rearm trigger on timeout if still enabled.
float Dragengine.Scenery.ECBehaviorTimer.Instance.getTimeoutSpread | ( | ) |
Random timeout spread in seconds.
Timeout spread is added to regular timeout. Timeout is chosen randomly between -spread to spread seconds. Hence random timeout spreads the chosen time above and below the regular timeout up to "spread" seconds.
bool Dragengine.Scenery.ECBehaviorTimer.Instance.getTimerRunning | ( | ) |
Timer is running.
ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorTimer.Instance.getTrigger | ( | ) |
Trigger or null.
void Dragengine.Scenery.ECBehaviorTimer.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorTimer.Instance.new | ( | ECBehaviorTimer | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorTimer.Instance.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read behavior instance from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorTimer.Instance.removeFromGameWorld | ( | ) |
Remove element from game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorTimer.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
void Dragengine.Scenery.ECBehaviorTimer.Instance.think | ( | float | elapsed | ) |
Think about what to do for the next frame update.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorTimer.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write behavior instance to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.