예제 #1
0
        private void GetArmour(List <IEquipment> equipments, FactoryMethodManager factoryManager)
        {
            Console.Clear();

            IEquipment armour = factoryManager.GetEquipment(EquipmentType.Armour);

            Console.WriteLine($"{armour.GetInfo()}\n\n");

            equipments.Add(armour);
        }
예제 #2
0
        private void GetEquipment(List <IEquipment> equipments, FactoryMethodManager factoryManager)
        {
            Console.Clear();

            IEquipment weapon = factoryManager.GetEquipment(EquipmentType.Weapon);

            Console.WriteLine($"{weapon.GetInfo()}\n\n");

            equipments.Add(weapon);
        }