Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECBehaviorParticleEmitter.Instance Class Reference

Behavior instance. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorParticleEmitter.Instance:
Dragengine.Scenery.DefaultECBehaviorInstance Dragengine.Scenery.ECBehaviorInstance

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...
 

Detailed Description

Behavior instance.

Member Function Documentation

◆ addListener()

void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.addListener ( Listener  listener)

Add listener.

◆ addToGameWorld()

void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.addToGameWorld ( )

Add element to game world.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ attachEmitterInstance()

void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.attachEmitterInstance ( StubElement  stub,
ECBehaviorCollider.Instance  collider 
)
protected

Attach particle emitter instance to collider.

Default implementation calls ECComposeAttachResource.attach().

◆ createParticleEmitterInstance()

ParticleEmitterInstance Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.createParticleEmitterInstance ( StubElement  stub)
protected

Create particle emitter instance.

Default implementation calls ECComposeParticleEmitter.createParticleEmitterInstance().

◆ dispose()

void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.dispose ( )

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getCasting()

bool Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getCasting ( )

Particle emitter instance is casting particles.

◆ getCollider()

ECBehaviorCollider.Instance Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getCollider ( )

Collider behavior or null if not attached.

◆ getECBehavior()

ECBehaviorParticleEmitter Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getECBehavior ( )

Behavior.

◆ getParticleEmitterInstance()

ParticleEmitterInstance Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getParticleEmitterInstance ( )

Particle emitter instance or null if not created.

◆ getTargetLastParticleDied()

TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getTargetLastParticleDied ( )

Trigger target pulsed if particles died.

◆ getTrigger()

ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getTrigger ( )

Trigger casting or null.

◆ getTriggerBehavior()

ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.getTriggerBehavior ( )
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.

◆ init()

void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.init ( StubElement  stub)

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new()

Instance Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.new ( ECBehaviorParticleEmitter  ecbehavior,
BehaviorElement  element 
)

Create behavior instance.

◆ notifyLastParticleDied()

void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.notifyLastParticleDied ( )

Notify listeners last particle died.

◆ readFromFile()

void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.readFromFile ( PersistencyEnvironment  env,
FileReader  reader 
)

Read element from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ removeListener()

void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.removeListener ( Listener  listener)

Remove listener.

◆ setCasting()

void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.setCasting ( bool  casting)

Set if particle emitter instance is casting particles.

◆ writeToFile()

void Dragengine.Scenery.ECBehaviorParticleEmitter.Instance.writeToFile ( PersistencyEnvironment  env,
FileWriter  writer 
)

Writes the element to a file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.


The documentation for this class was generated from the following file: