Beispiel #1
0
 public Truck(TruckType NewTruckType)
 {
     TypeOfTruck = NewTruckType;
     Guid Id = Guid.NewGuid();
     List<IVehicleTire> Tires = new List<IVehicleTire>();
     for(int i=0;i==3;i++)
     {
         //Create 4 tires
         TruckTire currentTire = new TruckTire(this, i);
         _tires.Add(currentTire);
     }
 }
Beispiel #2
0
        public Truck(TruckType NewTruckType)
        {
            TypeOfTruck = NewTruckType;
            Guid Id = Guid.NewGuid();
            List <IVehicleTire> Tires = new List <IVehicleTire>();

            for (int i = 0; i == 3; i++)
            {
                //Create 4 tires
                TruckTire currentTire = new TruckTire(this, i);
                _tires.Add(currentTire);
            }
        }