The source of output for a particle effect.
More...
#include <Emitter.h>
The source of output for a particle effect.
◆ Emitter() [1/3]
Instantiate a particle emitter object.
- Parameters
-
| pManager | A pointer to the particle manager that will manage emitted particles. |
◆ Emitter() [2/3]
Instantiate a particle emitter object.
- Parameters
-
| pManager | A pointer to the particle manager that will manage emitted particles. |
| pTemplate | A pointer to the template that the particles will use to update and for initialization. |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ Emitter() [3/3]
Instantiate a particle emitter object.
- Parameters
-
| pManager | A pointer to the particle manager that will manage emitted particles. |
| pTemplate | A pointer to the template that the particles will use to update and for initialization. |
| particlesPerSecond | The number of particles that will be emitted per second. |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ SetOutput()
| virtual void KatanaEngine::Emitter::SetOutput |
( |
const float |
output | ) |
|
|
inlinevirtual |
Sets the output percentage for the emitter.
- Parameters
-
| output | The value for the output. Zero is off, and one is full output. |
◆ SetParticlesPerSecond()
| virtual void KatanaEngine::Emitter::SetParticlesPerSecond |
( |
float |
particlesPerSecond | ) |
|
|
inlinevirtual |
Sets the number of particles that will be emitted per second, when the output is set to one.
- Parameters
-
| particlesPerSecond | The number of particles per second to emit. |
- See also
- SetOutput()
◆ SetPosition()
| void KatanaEngine::Emitter::SetPosition |
( |
const Vector2 |
position | ) |
|
|
virtual |
Sets the position of the emitter.
- Parameters
-
| position | The new position. |
◆ SetTemplate()
Sets the template that the particles will use to update and for initialization.
- Parameters
-
| pTemplate | A pointer to the template. |
◆ Update()
| void KatanaEngine::Emitter::Update |
( |
const GameTime * |
pGameTime | ) |
|
|
virtual |
Called when the game has determined that game logic needs to be processed.
- Parameters
-
| pGameTime | Timing values including time since last update. |
The documentation for this class was generated from the following files:
- KatanaEngine/Emitter.h
- KatanaEngine/Emitter.cpp