Esempio n. 1
0
 public City(String fname, CitySide fside, String fowner, int fef)
 {
     name = fname;
     side = fside;
     owner = fowner;
     ef = fef;
 }
Esempio n. 2
0
 public City(String fname)
 {
     name = fname;
     side = CitySide.NONE;
     owner = "";
     ef = 0;
 }
Esempio n. 3
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;
 }