Пример #1
0
        public Port(string port, SetPrice setPrice)
        {
            portName = port;

            portsCargoList.Add(bullet);
            portsCargoList.Add(rum);
            portsCargoList.Add(tobacco);
            portsCargoList.Add(spices);
            portsCargoList.Add(cloth);
            portsCargoList.Add(gunpowder);
            portsCargoList.Add(pearl);

            foreach (Cargo cargo in portsCargoList)
            {
                cargo.Price = setPrice.initialPrice(cargo.Name);
            }
        }