public CarriageBlock <T> Hook(CarriageBlock <T> other) { foreach (T item in other.carriages) { carriages.AddLast(item); } return(this); }
public CargoTrain(ILoco <V8DieselEngine> locomotive, CarriageBlock <CargoVag> carriageBlock) : base(locomotive, carriageBlock) { }
public Train <T> Hook(CarriageBlock <T> block) { carriages = carriages.Hook(block); return(this); }
public Train <T> Unhook(int positionFrom) { carriages = carriages.Unhook(positionFrom); return(this); }
public Train(ILoco <V8DieselEngine> locomotive, CarriageBlock <T> carriageBlock) { this.locomotive = locomotive; this.carriages = carriageBlock; }