Category5.VictimSkyscraper.Draw C# (CSharp) Method

Draw() public method

public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void
        public override void Draw(SpriteBatch batch)
        {
            switch (state)
            {
                case State.Exploding:
                    ExplodeAnimation.Draw(batch, this.bounds.getScaledDrawingRect(1.0f), drawAngle);
                    break;
                case State.Flying:
                    TornadoAnimation.Draw(batch, this.bounds.getScaledDrawingRect(1.0f), drawAngle);
                    break;
                case State.Ground:
                    GroundAnimation.Draw(batch, this.bounds.getScaledDrawingRect(1.0f), drawAngle);
                    HealthBar.Draw(getHealthRect().Rectangle, new Color(255, 255, 0, 128), new Color(255, 255, 0, 128), new Color(255, 0, 0, 128), this.HealthPercent);
                    break;
                case State.Stump:
                    StumpAnimation.Draw(batch, this.bounds.getScaledDrawingRect(1.0f), drawAngle);
                    break;
            }
        }