public Truck(Coordinate coordinate, int weightGoods, int speed, Coordinate сustomer) : base(coordinate) { this.X += 10; this.Y += 10; this.speed = speed; this.weightGoods = weightGoods; this.home = new Coordinate(X, Y); this.сustomer = сustomer; this.deliveryPath = Navigator.PolylineRoad(Navigator.GetRoad(ConvertorCoordinates.MeterToDegress(coordinate), ConvertorCoordinates.MeterToDegress(сustomer))); this.homePath = new List <Coordinate> (deliveryPath); this.homePath.Reverse(); }