Пример #1
0
 public static void CreateBonus()
 {
     for (int i = 0; i < count; i++)
     {
         int rowBonus = RandomLocation.Create();
         int colBonus = RandomLocation.Create();
         if (Verificationn.Location(rowBonus, colBonus))
         {
             Map.Data[rowBonus, colBonus] = Char;
         }
         else
         {
             i--;
         }
     }
 }
Пример #2
0
        public static void Create()
        {
            for (int i = 0; i < counntPoints; i++)
            {
                int pointRow = RandomLocation.Create();
                int pointCol = RandomLocation.Create();

                if (Verificationn.Location(pointRow, pointCol))
                {
                    Map.Data[pointRow, pointCol] = Char;
                }
                else
                {
                    i--;
                }
            }
        }
Пример #3
0
        public static void Create()
        {
            for (int i = 0; i < counntTrap; i++)
            {
                int rowTrap = RandomLocation.Create();
                int colTrap = RandomLocation.Create();

                if (Verificationn.Location(rowTrap, colTrap))
                {
                    Map.Data[rowTrap, colTrap] = Char;
                }
                else
                {
                    i--;
                }
            }
        }