public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
{
// draw all our shots
foreach (Shot shot in Shots.Values)
{
shot.Draw(gameTime, spriteBatch);
}
// if we're dead, there's nothing to draw
if (State == PlayerState.Dead)
return;
if (State == PlayerState.Exploding)
explosion.Draw(gameTime, spriteBatch);
else
{
DrawCallsign(gameTime, spriteBatch);
DrawStretched(gameTime, spriteBatch);
}
}
}