Ejemplo n.º 1
0
 internal void Book()
 {
     if (ID == -1)
     {
         Console.WriteLine("No cabs available");
         return;
     }
     CabState.Book(this);
 }
Ejemplo n.º 2
0
 public void RideComplete()
 {
     CabState.RideComplete(this);
 }
Ejemplo n.º 3
0
 internal void Cancelled()
 {
     CabState.Cancelled(this);
 }
Ejemplo n.º 4
0
 public void StartRide()
 {
     CabState.StartTrip(this);
 }