Exemplo n.º 1
0
 private void invalidate() {
   for (int y = 0; y < cutn.y; y++) {
     for (int x = 0; x < cutn.x; x++) buildcut(new Coord(x, y));
   }
   fo = null;
   for (Coord ic :
       new Coord[] {
         new Coord(-1, -1),
         new Coord(0, -1),
         new Coord(1, -1),
         new Coord(-1, 0),
         new Coord(1, 0),
         new Coord(-1, 1),
         new Coord(0, 1),
         new Coord(1, 1)
       }) {
     Grid ng = grids.get(gc.add(ic));
     if (ng != null) ng.ivneigh(ic.inv());
   }
   loaded = true;
 }