Arcade Shooter
Public Member Functions | Protected Member Functions | List of all members
Sample::Explosion Class Reference

Base class for explosions. More...

#include <Explosion.h>

Public Member Functions

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...
 

Protected Member Functions

virtual void SetPosition (const Vector2 position)
 Sets the explosion's position. More...
 

Detailed Description

Base class for explosions.

Member Function Documentation

◆ Activate()

void Sample::Explosion::Activate ( const Vector2  position,
const float  scale = 1 
)
virtual

Activates the explosion.

Parameters
positionThe position to place the explosion.
scaleThe 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
pSpriteBatchThe 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
pAnimationThe animation to set.

◆ SetPosition()

virtual void Sample::Explosion::SetPosition ( const Vector2  position)
inlineprotectedvirtual

Sets the explosion's position.

Parameters
positionThe 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
pGameTimeTiming values including time since last update.

The documentation for this class was generated from the following files: