예제 #1
0
파일: Road.cs 프로젝트: heizhai/cp2013team7
 public void trafficChangeLane(Lane l, Car c, Lane nl)
 {
     Car tempCar = c;
     l.removeCar(c);
     nl.addCar(tempCar);
 }
예제 #2
0
파일: Car.cs 프로젝트: heizhai/cp2013team7
 public void turn(Lane turningLane, Lane originatingLane, int lanePosition)
 {
     originatingLane.removeCar(this);
     this.lanePosition = lanePosition;
     turningLane.addCar(this);
 }