private void GetOnFerry() { if (Ferry.CanCarTakeAction(this)) { Console.WriteLine(string.Format("Car {0} get on the Ferry", Index)); //Ferry.GetCarIn(this); CarState = CarEnum.OnFerry; } WaitForAccess(); }
private void MoveFromFerry() { if (Ferry.CanCarTakeAction(this)) { Console.WriteLine(string.Format("Car {0} get out of the Ferry", Index)); //Ferry.GetCarOut(this); } else { WaitForAccess(); } }