Represents an explosion animation in the game.
More...
#include <Explosion.h>
Represents an explosion animation in the game.
Definition at line 8 of file Explosion.h.
◆ Explosion()
◆ ~Explosion()
| virtual Explosion::~Explosion |
( |
| ) |
|
|
inlinevirtual |
◆ Activate()
| void Explosion::Activate |
( |
const Vector2 | position, |
|
|
const float | scale = 1 ) |
|
virtual |
Activates the explosion.
- Parameters
-
| position | The position to place the explosion. |
| scale | The scale of the explosion.
|
Definition at line 19 of file Explosion.cpp.
◆ Draw()
Render the explosion.
- Parameters
-
| spriteBatch | A reference to the game's sprite batch, used for rendering. |
Definition at line 9 of file Explosion.cpp.
◆ GetSound()
Get the sound that will be played when the explosion is activated.
- Returns
- A pointer to the audio sample.
Definition at line 42 of file Explosion.h.
◆ IsActive()
| virtual bool Explosion::IsActive |
( |
| ) |
const |
|
inlinevirtual |
Checks if the explosion is active.
- Returns
- True if the explosion is active.
Definition at line 34 of file Explosion.h.
◆ SetAnimation()
| virtual void Explosion::SetAnimation |
( |
Animation * | pAnimation | ) |
|
|
inlinevirtual |
Sets the explosion's animation.
- Parameters
-
| pAnimation | The animation to set. |
Definition at line 25 of file Explosion.h.
◆ SetPosition()
| virtual void Explosion::SetPosition |
( |
const Vector2 | position | ) |
|
|
inlineprotectedvirtual |
Sets the explosion's position.
- Parameters
-
| position | The explosion's new position. |
Definition at line 49 of file Explosion.h.
◆ SetSound()
| virtual void Explosion::SetSound |
( |
AudioSample * | pSound | ) |
|
|
inlinevirtual |
Set the sound that will be played when the explosion is activated.
- Parameters
-
| pSound | A pointer to the audio sample. |
Definition at line 38 of file Explosion.h.
◆ Update()
| void Explosion::Update |
( |
const GameTime & | gameTime | ) |
|
|
virtual |
Update the explosion.
- Parameters
-
| gameTime | A reference to the game time object. |
Definition at line 3 of file Explosion.cpp.
The documentation for this class was generated from the following files: