Category5.MegaTile.DrawVictims C# (CSharp) Method

DrawVictims() public method

Draw all the victims contained in this tile
public DrawVictims ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch SpiteBatch to use for drawing the object
return void
        public void DrawVictims(SpriteBatch spriteBatch)
        {
            //Loop through all victims
            foreach (Victim vic in victims)
            {
                // if zoomed out dont draw small victims
                if (Victim.CanDrawVictim(level, vic))
                {
                    vic.Draw(spriteBatch);
                }
            }
        }