public static boolean allowsDirection(RouteTerminal a, int dir) {
return Directions.isAllowed(a.getAllowedDirections(), dir);
public static boolean allowsDirection(RouteTerminal a, int dir) {
return Directions.isAllowed(a.getAllowedDirections(), dir);