Пример #1
0
 public GrinderRoom(Room R) {
   roomCache = null;
   if (!R.amDestroyed()) {
     roomCache = R;
     fixExits(R);
   }
   roomID = R.roomID();
 }
Пример #2
0
 public void fixExits(Room R) {
   for (int d = Directions.NUM_DIRECTIONS() - 1; d >= 0; d--) {
     GrinderDir D = new GrinderDir();
     Room R2 = R.rawDoors()[d];
     if (R2 != null) {
       D.room = R2.roomID();
       Exit E2 = R.getRawExit(d);
       if (E2 != null) D.exit = E2;
     }
     doors[d] = D;
   }
 }