Astroids.Classes.Asteroid.ExplodeAnimation C# (CSharp) Method

ExplodeAnimation() public method

public ExplodeAnimation ( GameTime gametime ) : void
gametime Microsoft.Xna.Framework.GameTime
return void
        public void ExplodeAnimation(GameTime gametime)
        {
            switch (GetSize())
            {
                case 0:
                    this.smallAstRect.Location = new Point(this.posX - 5, this.posY - 5);
                    smallAstSpriteLoader.GetNextSprite();
                    break;
                case 1:
                    this.medAstRect.Location = new Point(this.posX - 7, this.posY - 7);
                    medAstSpriteLoader.GetNextSprite();
                    break;
                case 2:
                    this.largeAstRect.Location = new Point(this.posX - 10, this.posY - 8);
                    largeAstSpriteLoader.GetNextSprite();
                    break;
                default:
                    break;
            }
        }