Base class for explosions.
More...
#include <Explosion.h>
|
| virtual void | Update (const GameTime *pGameTime) |
| | Called when the game has determined that game logic needs to be processed. More...
|
| |
| virtual void | Draw (SpriteBatch *pSpriteBatch) |
| | Called when the game determines it is time to draw a frame. More...
|
| |
| virtual void | SetAnimation (Animation *pAnimation) |
| | Sets the explosion's animation. More...
|
| |
| virtual void | Activate (const Vector2 position, const float scale=1) |
| | Activates the explosion. More...
|
| |
| virtual bool | IsActive () const |
| | Determines if the explosion is active. More...
|
| |
Base class for explosions.
◆ Activate()
| void Sample::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. |
◆ Draw()
| void Sample::Explosion::Draw |
( |
SpriteBatch * |
pSpriteBatch | ) |
|
|
virtual |
Called when the game determines it is time to draw a frame.
- Parameters
-
| pSpriteBatch | The game's sprite batch, used for rendering. |
◆ IsActive()
| virtual bool Sample::Explosion::IsActive |
( |
| ) |
const |
|
inlinevirtual |
Determines if the explosion is active.
- Returns
- Returns true if the explosion is active, false otherwise.
◆ SetAnimation()
| virtual void Sample::Explosion::SetAnimation |
( |
Animation * |
pAnimation | ) |
|
|
inlinevirtual |
Sets the explosion's animation.
- Parameters
-
| pAnimation | The animation to set. |
◆ SetPosition()
| virtual void Sample::Explosion::SetPosition |
( |
const Vector2 |
position | ) |
|
|
inlineprotectedvirtual |
Sets the explosion's position.
- Parameters
-
| position | The explosion's new position. |
◆ Update()
| void Sample::Explosion::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: