Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Classes | |
class | CastingListener |
Trigger listener to toggle particle emitter casting state. More... | |
class | ParticleListener |
Particle listener. 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... | |
bool | getCasting () |
Particle emitter instance is casting particles. More... | |
ECBehaviorCollider.Instance | getCollider () |
Collider behavior or null if not attached. More... | |
ECBehaviorParticleEmitter | getECBehavior () |
Behavior. More... | |
ParticleEmitterInstance | getParticleEmitterInstance () |
Particle emitter instance or null if not created. More... | |
TSNamedTriggerTarget | getTargetLastParticleDied () |
Trigger target pulsed if particles died. More... | |
ECBehaviorTriggered.Instance | getTrigger () |
Trigger casting or null. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
Instance | new (ECBehaviorParticleEmitter ecbehavior, BehaviorElement element) |
Create behavior instance. More... | |
void | notifyLastParticleDied () |
Notify listeners last particle died. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read element from file. More... | |
void | removeListener (Listener listener) |
Remove listener. More... | |
void | setCasting (bool casting) |
Set if particle emitter instance is casting particles. 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... | |
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... | |
Protected Member Functions | |
void | attachEmitterInstance (StubElement stub, ECBehaviorCollider.Instance collider) |
Attach particle emitter instance to collider. More... | |
ParticleEmitterInstance | createParticleEmitterInstance (StubElement stub) |
Create particle emitter instance. More... | |
ECBehaviorTriggered.Instance | getTriggerBehavior () |
Get casting 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.ECBehaviorParticleEmitter.Instance.addListener | ( | Listener | listener | ) |
Add listener.
void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.addToGameWorld | ( | ) |
Add element to game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
|
protected |
Attach particle emitter instance to collider.
Default implementation calls ECComposeAttachResource.attach().
|
protected |
Create particle emitter instance.
Default implementation calls ECComposeParticleEmitter.createParticleEmitterInstance().
void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
bool Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getCasting | ( | ) |
Particle emitter instance is casting particles.
ECBehaviorCollider.Instance Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getCollider | ( | ) |
Collider behavior or null if not attached.
ECBehaviorParticleEmitter Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getECBehavior | ( | ) |
Behavior.
ParticleEmitterInstance Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getParticleEmitterInstance | ( | ) |
Particle emitter instance or null if not created.
TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getTargetLastParticleDied | ( | ) |
Trigger target pulsed if particles died.
ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getTrigger | ( | ) |
Trigger casting or null.
|
protected |
Get casting trigger behavior.
Default implementation uses owner class trigger behavior. If getSyncTrigger() of parent ECBehaviorParticleEmitter is not null uses referenced behavior trigger behavior.
void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.new | ( | ECBehaviorParticleEmitter | ecbehavior, |
BehaviorElement | element | ||
) |
Create behavior instance.
void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.notifyLastParticleDied | ( | ) |
Notify listeners last particle died.
void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read element from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.setCasting | ( | bool | casting | ) |
Set if particle emitter instance is casting particles.
void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Writes the element to a file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.