27 virtual void Update(
const GameTime *pGameTime);
31 virtual void Draw(SpriteBatch *pSpriteBatch);
35 virtual void SetAnimation(Animation *pAnimation) { m_pAnimation = pAnimation; }
40 virtual void Activate(
const Vector2 position,
const float scale = 1);
44 virtual bool IsActive()
const {
return m_pAnimation->IsPlaying(); }
51 virtual void SetPosition(
const Vector2 position) { m_position = position; }
56 Animation *m_pAnimation;
virtual void Update(const GameTime *pGameTime)
Called when the game has determined that game logic needs to be processed.
Definition: Explosion.cpp:17
Sample is a sample game to use as a template for using Katana Engine and Shooter Library.
Definition: Background.cpp:14
virtual void SetPosition(const Vector2 position)
Sets the explosion's position.
Definition: Explosion.h:51
virtual void Draw(SpriteBatch *pSpriteBatch)
Called when the game determines it is time to draw a frame.
Definition: Explosion.cpp:23
virtual void Activate(const Vector2 position, const float scale=1)
Activates the explosion.
Definition: Explosion.cpp:33
virtual void SetAnimation(Animation *pAnimation)
Sets the explosion's animation.
Definition: Explosion.h:35
Base class for explosions.
Definition: Explosion.h:18
virtual bool IsActive() const
Determines if the explosion is active.
Definition: Explosion.h:44