public void Copy(FellowPath toCopy) { this.checkpoints = new Queue<CheckPoint>(); foreach (CheckPoint cp in toCopy.checkpoints) { this.checkpoints.Enqueue(cp.Clone()); } }
public FellowPath Clone() { FellowPath clone = new FellowPath(); clone.Copy(this); return clone; }