Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Classes | |
class | TouchListener |
Trigger listener. More... | |
Public Member Functions | |
void | addListener (Listener listener) |
Add listener. More... | |
void | addToGameWorld () |
Add element to game world. More... | |
void | dispose () |
Dispose of composeable instance. More... | |
ECBehaviorTouching | getECBehavior () |
Behavior. More... | |
bool | getPulse () |
Pulse trigger target instead of fire. More... | |
TSNamedTriggerTarget | getTarget () |
Trigger target or null. More... | |
ECBehaviorTouchSensor.Instance | getTouchSensor () |
Touch sensor or null. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
Instance | new (ECBehaviorTouching ecbehavior, BehaviorElement element) |
Create element. More... | |
void | removeFromGameWorld () |
Remove element from game world. More... | |
void | removeListener (Listener listener) |
Remove listener. More... | |
void | startTouching () |
First element entered touch sensor. More... | |
void | stopTouching () |
Last element left touch sensor. 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... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read behavior instance from file. 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... | |
Protected Member Functions | |
void | fireTarget () |
Fire target if not null. More... | |
void | resetTarget () |
Reset target if not null. 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.ECBehaviorTouching.Instance.addListener | ( | Listener | listener | ) |
Add listener.
void Dragengine.Scenery.ECBehaviorTouching.Instance.addToGameWorld | ( | ) |
Add element to game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorTouching.Instance.dispose | ( | ) |
Dispose of composeable instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
|
protected |
Fire target if not null.
ECBehaviorTouching Dragengine.Scenery.ECBehaviorTouching.Instance.getECBehavior | ( | ) |
Behavior.
bool Dragengine.Scenery.ECBehaviorTouching.Instance.getPulse | ( | ) |
Pulse trigger target instead of fire.
TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorTouching.Instance.getTarget | ( | ) |
Trigger target or null.
ECBehaviorTouchSensor.Instance Dragengine.Scenery.ECBehaviorTouching.Instance.getTouchSensor | ( | ) |
Touch sensor or null.
void Dragengine.Scenery.ECBehaviorTouching.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorTouching.Instance.new | ( | ECBehaviorTouching | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorTouching.Instance.removeFromGameWorld | ( | ) |
Remove element from game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorTouching.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
|
protected |
Reset target if not null.
void Dragengine.Scenery.ECBehaviorTouching.Instance.startTouching | ( | ) |
First element entered touch sensor.
void Dragengine.Scenery.ECBehaviorTouching.Instance.stopTouching | ( | ) |
Last element left touch sensor.