public bool NeedsToGoRight() { return(rail.GetIndex() < route[nextDestination].GetPosition()); }
/// <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()); }