Пример #1
0
 public void RemovePirate(Pirate pete)
 {
     pirateList.Remove(pete);
     objects.Remove(pete);
 }
Пример #2
0
        public void makePirates(Random rand)
        {
            int dimensions = rand.Next(35, 65);
            Pirate temp;

            for(int i = 0; i < pirateNum; i++)
            {
                int num1 = rand.Next(0, screenWidth - pirateImage.Width);
                int num2 = rand.Next(0, screenHeight - pirateImage.Height);

                temp = new Pirate(num1, num2, dimensions, dimensions, pirateImage);

                pirateList.Add(temp);
                objects.Add(temp);
            }

        }