Category5.Tornado.Draw C# (CSharp) Méthode

Draw() public méthode

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void
        public void Draw(SpriteBatch spriteBatch)
        {
            // draw vicitms
            foreach (Victim v in Victims)
            {
                if (Victim.CanDrawVictim(ParentLevel, v))
                {
                    v.Draw(spriteBatch);
                }
            }

            // draw tornado center
            //spriteBatch.DrawString(CenterFont, ".", Position, new Color(255, 0, 0),
            //            0, new Vector2(0f, 0f), 1.0f, SpriteEffects.None, 0.0f);
        }