29 #ifndef _ParticleSpawner_H__ 30 #define _ParticleSpawner_H__ 46 virtual void XMLEventPort(Element& xmlelement,
XMLPort::Mode mode)
override;
48 inline void stop(
bool bDestroy)
49 { this->bForceDestroy_ = bDestroy; this->stopParticleSpawner(); }
51 { this->bSuppressStart_ =
false; this->startParticleSpawner(); }
53 void configure(
float lifetime = 0,
float startdelay = 0,
float destroydelay = 0,
bool autodestroy =
true);
56 { this->bAutostart_ = autostart; this->bSuppressStart_ = !autostart; }
58 {
return this->bAutostart_; }
61 { this->bAutoDestroy_ =
destroy; }
63 {
return this->bAutoDestroy_; }
66 { this->bLoop_ = loop; }
68 {
return this->bLoop_; }
71 { this->lifetime_ = lifetime; this->startParticleSpawner(); }
73 {
return this->lifetime_; }
76 { this->startdelay_ = startdelay; this->startParticleSpawner(); }
78 {
return this->startdelay_; }
81 { this->destroydelay_ = destroydelay; this->startParticleSpawner(); }
83 {
return this->destroydelay_; }
86 void startParticleSpawner();
87 void fireParticleSpawner();
88 void stopParticleSpawner();
89 void destroyParticleSpawner();
void setLifetime(float lifetime)
Definition: ParticleSpawner.h:70
bool getLoop() const
Definition: ParticleSpawner.h:67
bool getDestroyAfterLife() const
Definition: ParticleSpawner.h:62
float lifetime_
Definition: ParticleSpawner.h:99
void setAutoStart(bool autostart)
Definition: ParticleSpawner.h:55
void setDestroydelay(float destroydelay)
Definition: ParticleSpawner.h:80
Definition: ParticleSpawner.h:39
void stop(bool bDestroy)
Definition: ParticleSpawner.h:48
float getDestroydelay() const
Definition: ParticleSpawner.h:82
The MetaPickup destroys all the PickupCarriers' Pickupables.
Definition: ParticleEmitter.h:39
bool bSuppressStart_
Definition: ParticleSpawner.h:93
void spawn()
Definition: ParticleSpawner.h:50
xmlelement
Definition: Super.h:519
Timer timer_
Definition: ParticleSpawner.h:91
float startdelay_
Definition: ParticleSpawner.h:98
Declaration of the Timer class, used to call functions after a given time-interval.
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
bool getAutoStart() const
Definition: ParticleSpawner.h:57
Mode
Definition: CorePrereqs.h:102
void setStartdelay(float startdelay)
Definition: ParticleSpawner.h:75
float getStartdelay() const
Definition: ParticleSpawner.h:77
Shared library macros, enums, constants and forward declarations for the orxonox library ...
bool bForceDestroy_
Definition: ParticleSpawner.h:95
float destroydelay_
Definition: ParticleSpawner.h:100
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
void setLoop(bool loop)
Definition: ParticleSpawner.h:65
float getLifetime() const
Definition: ParticleSpawner.h:72
void setDestroyAfterLife(bool destroy)
Definition: ParticleSpawner.h:60
bool bLoop_
Definition: ParticleSpawner.h:97
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
bool bAutoDestroy_
Definition: ParticleSpawner.h:96
bool bAutostart_
Definition: ParticleSpawner.h:94