public City(String fname, CitySide fside, String fowner, int fef) { name = fname; side = fside; owner = fowner; ef = fef; }
public City(String fname) { name = fname; side = CitySide.NONE; owner = ""; ef = 0; }
public static CitySide opposed(CitySide side) { if (side == CitySide.TOP) return CitySide.BOTTOM; else if (side == CitySide.RIGHT) return CitySide.LEFT; else if (side == CitySide.BOTTOM) return CitySide.TOP; else if (side == CitySide.LEFT) return CitySide.RIGHT; else return CitySide.NONE; }