16 class ParticleTemplate;
38 virtual void SetLifespan(
const float seconds) { m_lifespan = seconds; }
54 virtual void SetAlpha(
const float alpha) { m_alpha = alpha; }
58 virtual float GetAlpha()
const {
return m_alpha; }
70 virtual void SetRotation(
const float rotation) { m_rotation = rotation; }
78 virtual uint32_t
GetIndex()
const {
return m_index; }
83 static uint32_t s_count;
99 virtual void Activate() { m_lifeSeconds = m_lifespan; }
101 virtual bool IsActive()
const {
return m_lifeSeconds > 0; }
103 virtual void Update(
const GameTime *pGameTime);
The source of output for a particle effect.
Definition: Emitter.h:18
virtual float GetAlpha() const
Gets the alpha value (opacity) of the particle.
Definition: Particle.h:58
virtual Vector2 GetScale() const
Gets the scale of the particle.
Definition: Particle.h:66
virtual void SetScale(const Vector2 scale)
Sets the particle's scale.
Definition: Particle.h:62
virtual void SetLifespan(const float seconds)
Sets the lifespan of the particle in seconds.
Definition: Particle.h:38
virtual float GetRotation() const
Gets the rotation of the particle.
Definition: Particle.h:74
Contains timing values for game updates and rendering.
Definition: GameTime.h:17
Manages the active particles in a particle system.
Definition: ParticleManager.h:18
Represents a four-component color using red, green, blue, and alpha data.
Definition: Color.h:17
Base class for particle templates which are used to control the updating of a corresponding particle ...
Definition: ParticleTemplate.h:17
Defines a vector with 2 components (x and y). This is additional information...
Definition: Vector2.h:18
virtual uint32_t GetIndex() const
Gets the index of the particle.
Definition: Particle.h:78
virtual void SetRotation(const float rotation)
Sets the particle's rotation.
Definition: Particle.h:70
virtual Vector2 & GetPosition()
Gets the position of the particle.
Definition: Particle.h:50
Enables a group of sprites to be drawn using the same settings.
Definition: SpriteBatch.h:44
A single component of a particle system.
Definition: Particle.h:19
virtual void SetTemplate(ParticleTemplate *pTemplate)
Sets template responsible for updating the particle.
Definition: Particle.h:42
virtual float GetInterpolationValue()
A value representing the percentage of the particle's lifespan.
Definition: Particle.cpp:52
virtual void SetAlpha(const float alpha)
Sets the particle's alpha value (opacity).
Definition: Particle.h:54
virtual void SetPosition(const Vector2 position)
Sets the particle's position.
Definition: Particle.h:46
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...
Definition: Animation.cpp:14