Example #1
0
 public void invalblob(Message msg) {
   int type = msg.uint8();
   if (type == 0) {
     invalidate(msg.coord());
   } else if (type == 1) {
     Coord ul = msg.coord();
     Coord lr = msg.coord();
     trim(ul, lr);
   } else if (type == 2) {
     trimall();
   }
 }
Example #2
0
 public void mapdata2(Message msg) {
   Coord c = msg.coord();
   synchronized (grids) {
     synchronized (req) {
       if (req.containsKey(c)) {
         Grid g = grids.get(c);
         if (g == null) grids.put(c, g = new Grid(c));
         g.fill(msg);
         req.remove(c);
         olseq++;
       }
     }
   }
 }