Drag[en]gine Game Engine
1.21
|
Particle Emitter Instance. Instance of a particle emitter. More...
#include <deParticleEmitterInstance.h>
Public Types | |
typedef deTObjectReference< deParticleEmitterInstance > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deResource | |
typedef deTObjectReference< deResource > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deObject | |
typedef deTObjectReference< deObject > | Ref |
Type holding strong reference. More... | |
Public Member Functions | |
Management | |
deParticleEmitter * | GetEmitter () const |
Set emitter or NULL if none is set. More... | |
void | SetEmitter (deParticleEmitter *emitter) |
Set emitter or NULL to unset it. More... | |
const decDVector & | GetPosition () const |
Position. More... | |
void | SetPosition (const decDVector &position) |
Set position. More... | |
const decQuaternion & | GetOrientation () const |
Orientation. More... | |
void | SetOrientation (const decQuaternion &orientation) |
Set orientation. More... | |
const decDVector & | GetReferencePosition () const |
Reference position. Particles positions are relative to this position. More... | |
void | SetReferencePosition (const decDVector &position) |
Set reference position. Particles positions are relative to this position. More... | |
bool | GetEnableCasting () const |
Determines if casting particles is enabled. More... | |
void | SetEnableCasting (bool enable) |
Sets if casting particles is enabled. More... | |
bool | GetRemoveAfterLastParticleDied () const |
Emitter instance is removed from the world if the last particle died. More... | |
void | SetRemoveAfterLastParticleDied (bool remove) |
Set if emitter instance is removed from the world if the last particle died. More... | |
float | GetTimeScale () const |
Scaling for the time to be added to controllers linked to time. More... | |
void | SetTimeScale (float scale) |
Set scaling for the time to be added to controllers linked to time. More... | |
float | GetWarmUpTime () const |
Warm up time used when enabling casting. More... | |
void | SetWarmUpTime (float warmUpTime) |
Set warm up time used when enabling casting. More... | |
float | GetBurstTime () const |
Burst time. Set by the physics module to be used by the graphics module. More... | |
void | SetBurstTime (float burstTime) |
Set burst time. Set by the physics module to be used by the graphics module. More... | |
const decLayerMask & | GetLayerMask () const |
Layer mask. More... | |
void | SetLayerMask (const decLayerMask &layerMask) |
Set layer mask. More... | |
const decCollisionFilter & | GetCollisionFilter () const |
Collision filter. More... | |
void | SetCollisionFilter (const decCollisionFilter &collisionFilter) |
Set collision filter. More... | |
int | GetControllerCount () const |
Number of controllers. More... | |
deParticleEmitterController & | GetControllerAt (int index) |
Controller at index. More... | |
const deParticleEmitterController & | GetControllerAt (int index) const |
int | IndexOfControllerNamed (const char *name) const |
Index of named controller or -1 if absent. More... | |
void | NotifyControllerChangedAt (int index) |
Notify peer controller changed. More... | |
int | GetTypeCount () const |
Count of types. More... | |
deParticleEmitterInstanceType & | GetTypeAt (int index) |
Type at the given index. More... | |
const deParticleEmitterInstanceType & | GetTypeAt (int index) const |
void | NotifyTypeChangedAt (int type) |
Notifies the peers that the type at the given index changed. More... | |
void | NotifyTypeParticlesChangedAt (int type) |
Notifies the peers that the particles in a type changed. More... | |
void | ResetBurst () |
Reset burst particles. More... | |
void | KillAllParticles () |
Kill all particles. More... | |
void | NotifyLastParticleDied () |
Notifies the Scripting Module that the last particle died. More... | |
void | CollisionResponse (deCollisionInfo *cinfo) |
Let scripting module determine response for a custom particle collision. More... | |
Ignore colliders | |
int | GetIgnoreColliderCount () const |
Number of colliders to ignore. More... | |
deCollider * | GetIgnoreColliderAt (int index) const |
Collider to ignore at index. More... | |
bool | HasIgnoreCollider (deCollider *collider) const |
Collider to ignore is present. More... | |
void | AddIgnoreCollider (deCollider *collider) |
Add collider to ignore. More... | |
void | RemoveIgnoreCollider (deCollider *collider) |
Remove collider to ignore. More... | |
void | RemoveAllIgnoreColliders () |
Remove all colliders to ignore. More... | |
System Peers | |
deBaseGraphicParticleEmitterInstance * | GetPeerGraphic () const |
Graphic system peer object or NULL if not assigned. More... | |
void | SetPeerGraphic (deBaseGraphicParticleEmitterInstance *peer) |
Set graphic system peer object or NULL if not assigned. More... | |
deBasePhysicsParticleEmitterInstance * | GetPeerPhysics () const |
Physics system peer object or NULL if not assigned. More... | |
void | SetPeerPhysics (deBasePhysicsParticleEmitterInstance *peer) |
Set physics system peer object or NULL if not assigned. More... | |
deBaseScriptingParticleEmitterInstance * | GetPeerScripting () const |
Scripting system peer object or NULL if not assigned. More... | |
void | SetPeerScripting (deBaseScriptingParticleEmitterInstance *peer) |
Set scripting system peer object or NULL if not assigned. More... | |
Public Member Functions inherited from deResource | |
deResourceManager * | GetResourceManager () const |
Resource manager or NULL if resource is leaking. More... | |
deEngine * | GetEngine () const |
Game engine object from resource manager. More... | |
deResource * | GetLLManagerPrev () const |
Previous resource in the resource manager linked list. More... | |
void | SetLLManagerPrev (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
deResource * | GetLLManagerNext () const |
Next resource in the resource manager linked list. More... | |
void | SetLLManagerNext (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
void | MarkLeaking () |
Marks the resource leaking. More... | |
deResource (deResourceManager *resourceManager) | |
Create resource. More... | |
Public Member Functions inherited from deObject | |
int | GetRefCount () const |
Reference count. More... | |
void | AddReference () |
Add reference increasing reference count by 1. More... | |
void | FreeReference () |
Decrease reference count by one and delete object if count reaches 0. More... | |
deObject () | |
Create object with reference count of 1. More... | |
Constructors and Destructors | |
deParticleEmitterInstance (deParticleEmitterInstanceManager *manager) | |
Create new particle emitter instance. More... | |
virtual | ~deParticleEmitterInstance () |
Clean up particle emitter instance. More... | |
Linked List | |
deWorld * | GetParentWorld () const |
Parent world or NULL. More... | |
void | SetParentWorld (deWorld *world) |
Set parent world or NULL. More... | |
deParticleEmitterInstance * | GetLLWorldPrev () const |
Previous particle emitter in the parent world linked list. More... | |
void | SetLLWorldPrev (deParticleEmitterInstance *instance) |
Set next particle emitter in the parent world linked list. More... | |
deParticleEmitterInstance * | GetLLWorldNext () const |
Next particle emitter in the parent world linked list. More... | |
void | SetLLWorldNext (deParticleEmitterInstance *instance) |
Set next particle emitter in the parent world linked list. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from deResource | |
virtual | ~deResource () |
Clean up resource. More... | |
Protected Member Functions inherited from deObject | |
virtual | ~deObject () |
Clean up object. More... | |
Particle Emitter Instance. Instance of a particle emitter.
Type holding strong reference.
deParticleEmitterInstance::deParticleEmitterInstance | ( | deParticleEmitterInstanceManager * | manager | ) |
Create new particle emitter instance.
|
protectedvirtual |
Clean up particle emitter instance.
void deParticleEmitterInstance::AddIgnoreCollider | ( | deCollider * | collider | ) |
void deParticleEmitterInstance::CollisionResponse | ( | deCollisionInfo * | cinfo | ) |
Let scripting module determine response for a custom particle collision.
|
inline |
Burst time. Set by the physics module to be used by the graphics module.
|
inline |
Collision filter.
deParticleEmitterController& deParticleEmitterInstance::GetControllerAt | ( | int | index | ) |
Controller at index.
deeInvalidParam | index is less than 0. |
deeInvalidParam | index is greater or equal than GetControllerCount(). |
const deParticleEmitterController& deParticleEmitterInstance::GetControllerAt | ( | int | index | ) | const |
|
inline |
Number of controllers.
|
inline |
Set emitter or NULL if none is set.
|
inline |
Determines if casting particles is enabled.
deCollider* deParticleEmitterInstance::GetIgnoreColliderAt | ( | int | index | ) | const |
Collider to ignore at index.
deeInvalidParam | index is less than 0. |
deeInvalidParam | index is greater or equal than GetIgnoreColliderCount()-1. |
int deParticleEmitterInstance::GetIgnoreColliderCount | ( | ) | const |
Number of colliders to ignore.
|
inline |
Layer mask.
|
inline |
Next particle emitter in the parent world linked list.
|
inline |
Previous particle emitter in the parent world linked list.
|
inline |
Orientation.
|
inline |
Parent world or NULL.
|
inline |
Graphic system peer object or NULL if not assigned.
|
inline |
Physics system peer object or NULL if not assigned.
|
inline |
Scripting system peer object or NULL if not assigned.
|
inline |
Position.
|
inline |
Reference position. Particles positions are relative to this position.
This is called by the Physics Module to tell the Graphics Module where the particles have to be rendered. If the Graphic Module does the simulation by itself setting the reference position is not required.
|
inline |
Emitter instance is removed from the world if the last particle died.
|
inline |
Scaling for the time to be added to controllers linked to time.
deParticleEmitterInstanceType& deParticleEmitterInstance::GetTypeAt | ( | int | index | ) |
Type at the given index.
const deParticleEmitterInstanceType& deParticleEmitterInstance::GetTypeAt | ( | int | index | ) | const |
|
inline |
Count of types.
|
inline |
Warm up time used when enabling casting.
bool deParticleEmitterInstance::HasIgnoreCollider | ( | deCollider * | collider | ) | const |
Collider to ignore is present.
int deParticleEmitterInstance::IndexOfControllerNamed | ( | const char * | name | ) | const |
Index of named controller or -1 if absent.
void deParticleEmitterInstance::KillAllParticles | ( | ) |
Kill all particles.
void deParticleEmitterInstance::NotifyControllerChangedAt | ( | int | index | ) |
Notify peer controller changed.
void deParticleEmitterInstance::NotifyLastParticleDied | ( | ) |
Notifies the Scripting Module that the last particle died.
void deParticleEmitterInstance::NotifyTypeChangedAt | ( | int | type | ) |
Notifies the peers that the type at the given index changed.
void deParticleEmitterInstance::NotifyTypeParticlesChangedAt | ( | int | type | ) |
Notifies the peers that the particles in a type changed.
void deParticleEmitterInstance::RemoveAllIgnoreColliders | ( | ) |
Remove all colliders to ignore.
void deParticleEmitterInstance::RemoveIgnoreCollider | ( | deCollider * | collider | ) |
void deParticleEmitterInstance::ResetBurst | ( | ) |
Reset burst particles.
void deParticleEmitterInstance::SetBurstTime | ( | float | burstTime | ) |
Set burst time. Set by the physics module to be used by the graphics module.
void deParticleEmitterInstance::SetCollisionFilter | ( | const decCollisionFilter & | collisionFilter | ) |
Set collision filter.
void deParticleEmitterInstance::SetEmitter | ( | deParticleEmitter * | emitter | ) |
Set emitter or NULL to unset it.
void deParticleEmitterInstance::SetEnableCasting | ( | bool | enable | ) |
Sets if casting particles is enabled.
void deParticleEmitterInstance::SetLayerMask | ( | const decLayerMask & | layerMask | ) |
Set layer mask.
void deParticleEmitterInstance::SetLLWorldNext | ( | deParticleEmitterInstance * | instance | ) |
Set next particle emitter in the parent world linked list.
void deParticleEmitterInstance::SetLLWorldPrev | ( | deParticleEmitterInstance * | instance | ) |
Set next particle emitter in the parent world linked list.
void deParticleEmitterInstance::SetOrientation | ( | const decQuaternion & | orientation | ) |
Set orientation.
void deParticleEmitterInstance::SetParentWorld | ( | deWorld * | world | ) |
Set parent world or NULL.
void deParticleEmitterInstance::SetPeerGraphic | ( | deBaseGraphicParticleEmitterInstance * | peer | ) |
Set graphic system peer object or NULL if not assigned.
void deParticleEmitterInstance::SetPeerPhysics | ( | deBasePhysicsParticleEmitterInstance * | peer | ) |
Set physics system peer object or NULL if not assigned.
void deParticleEmitterInstance::SetPeerScripting | ( | deBaseScriptingParticleEmitterInstance * | peer | ) |
Set scripting system peer object or NULL if not assigned.
void deParticleEmitterInstance::SetPosition | ( | const decDVector & | position | ) |
Set position.
void deParticleEmitterInstance::SetReferencePosition | ( | const decDVector & | position | ) |
Set reference position. Particles positions are relative to this position.
This is called by the Physics Module to tell the Graphics Module where the particles have to be rendered. If the Graphic Module does the simulation by itself setting the reference position is not required.
void deParticleEmitterInstance::SetRemoveAfterLastParticleDied | ( | bool | remove | ) |
Set if emitter instance is removed from the world if the last particle died.
void deParticleEmitterInstance::SetTimeScale | ( | float | scale | ) |
Set scaling for the time to be added to controllers linked to time.
void deParticleEmitterInstance::SetWarmUpTime | ( | float | warmUpTime | ) |
Set warm up time used when enabling casting.