Пример #1
0
 /**
  * Sets the opposite portal of both portals.
  *
  * @see Portal#oppositePortal
  */
 protected void linkPortals() {
   if (orangePortal != null && bluePortal != null) {
     bluePortal.setOppositePortal(orangePortal);
     orangePortal.setOppositePortal(bluePortal);
   }
 }