Exemplo n.º 1
0
        private static void House2Build(HouseFactory house, ref int stages, ref bool parkingSlot)
        {
            House house2 = house.GetHouse(2);

            if (house2 != null)
            {
                for (int i = 0; i < 5; i++)
                {
                    house2.BuildHouse(stages, parkingSlot);
                    stages += 2;
                }
            }
        }
Exemplo n.º 2
0
        private static void House1Build(HouseFactory house, int stages, ref bool parkingSlot)
        {
            House house1 = house.GetHouse(1);

            if (house1 != null)
            {
                for (int i = 0; i < 5; i++)
                {
                    house1.BuildHouse(stages, parkingSlot);
                    stages++;
                    parkingSlot = !parkingSlot;
                }
            }
        }