Esempio n. 1
0
 public bool NeedsToGoRight()
 {
     return(rail.GetIndex() < route[nextDestination].GetPosition());
 }
Esempio n. 2
0
 /// <summary>
 /// Checks if train needs to go forward to reach the next destination on his route
 /// </summary>
 /// <returns></returns>
 public bool NeedsToGoForward()
 {
     return(rail.GetIndex() < route[nextDestination].GetRailIndex());
 }