public void AddChickenHouse(ChickenHouse field)
 {
     ChickenHouses.Add(field);
     Console.WriteLine("Chicken House has been added");
     Console.WriteLine("Press enter key to continue");
     Console.ReadLine();
 }
예제 #2
0
        public void AddFacility(object facility)
        {
            switch (facility)
            {
            case ChickenHouse C:
                ChickenHouses.Add(C);
                break;

            case DuckHouse D:
                DuckHouses.Add(D);
                break;

            case PlowedField P:
                PlowedFields.Add(P);
                break;

            case GrazingField G:
                GrazingFields.Add(G);
                break;

            case NaturalField N:
                NaturalFields.Add(N);
                break;
            }
        }
예제 #3
0
 public void AddChickenHouse(ChickenHouse house)
 {
     ChickenHouses.Add(house);
 }
예제 #4
0
 public void AddChickenHouse(ChickenHouse coop)
 {
     ChickenHouses.Add(coop);
 }
예제 #5
0
 public void AddChickenHouse(ChickenHouse field)
 {
     ChickenHouses.Add(field);
 }
예제 #6
0
 public void AddChickenHouse(ChickenHouse house)
 {
     ChickenHouses.Add(house);
     Console.WriteLine($"New Chicken House has been created!");
     Console.ReadLine();
 }
예제 #7
0
 public void AddChickenHouse(ChickenHouse field)
 {
     ChickenHouses.Add(field);
     Console.WriteLine("Chicken house successfully created");
     Thread.Sleep(1500);
 }
 public void AddChickenHouse(ChickenHouse chickenHouse)
 {
     ChickenHouses.Add(chickenHouse);
 }
예제 #9
0
 public void AddChickenHouse(ChickenHouse house)
 {
     ChickenHouses.Add(house);
     AvailableChickenHouses.Add(house);
 }
예제 #10
0
 public void AddChickenHouse(ChickenHouse house)
 {
     ChickenHouses.Add(house);
     Console.WriteLine("You have added a chicken house!");
 }
 public void AddChickenHouse(ChickenHouse house)
 {
     ChickenHouses.Add(house);
     Console.WriteLine("A new chicken house has been created.");
     Thread.Sleep(2000);
 }
예제 #12
0
 public void AddChickenHouse(ChickenHouse house)
 {
     ChickenHouses.Add(house);
     // Confirmation
     System.Console.WriteLine($"{house} has been added");
 }
예제 #13
0
파일: Farm.cs 프로젝트: jisie/old-macdonald
 public void AddChickenHouse(ChickenHouse house)
 {
     ChickenHouses.Add(house);
     Console.WriteLine("Chicken House created successfully!");
     Console.WriteLine(ChickenHouses[ChickenHouses.Count - 1]);
 }