Examples of OrbAttachMessage


Examples of org.jdesktop.wonderland.modules.orb.common.messages.OrbAttachMessage

    }

    CellID cellID = orbCell.getCellID();
    if (ATTACH.equals(text)) {
        attachButton.setText(DETACH);
        channelComp.send(new OrbAttachMessage(cellID, avatarCellID, true));
    } else {
        attachButton.setText(ATTACH);
        channelComp.send(new OrbAttachMessage(cellID, avatarCellID, false));
    }
}//GEN-LAST:event_attachButtonActionPerformed
View Full Code Here

Examples of org.jdesktop.wonderland.modules.orb.common.messages.OrbAttachMessage

            }

      logger.info("Attach orb " + orbCell.getCellID()
    + " player with " + playerWithVpCallID + " to " + info);

            channelComp.send(new OrbAttachMessage(orbCell.getCellID(), info.getCellID(), true));
  } else {
      /*
       * Ask the server to tell us if the orb is attached.
       */
      logger.fine("Asking server if orb is attached " + orbCell.getCellID());

            channelComp.send(new OrbAttachMessage(orbCell.getCellID(), null, true));
  }
    }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.orb.common.messages.OrbAttachMessage

      nameTagComp.setNameTag(EventType.CHANGE_NAME, username, usernameAlias);
      return;
  }

  if (message instanceof OrbAttachMessage) {
      OrbAttachMessage msg = (OrbAttachMessage) message;

      attachOrb(msg.getHostCellID(), msg.isAttached());
      return;
  }

  if (message instanceof OrbAttachVirtualPlayerMessage) {
      OrbAttachVirtualPlayerMessage msg = (OrbAttachVirtualPlayerMessage) message;

      PresenceInfo info = pm.getPresenceInfo(msg.getHostCallID());

      if (info == null) {
    logger.warning("OrbAttachVirtualPlayerMessage, no presence info for callID "
        + msg.getHostCallID());
    return;
      }

      attachOrb(info.getCellID(), true);
      return;
View Full Code Here

Examples of org.jdesktop.wonderland.modules.orb.common.messages.OrbAttachMessage

      logger.fine("player " + player + " sp " + spatializer + " v " + volume);
      return;
   }
 
  if (message instanceof OrbAttachMessage) {
      OrbAttachMessage msg = (OrbAttachMessage) message;
     
      boolean isAttached = msg.isAttached();

      if (isAttached && msg.getHostCellID() == null) {
    /*
     * If hostCellID is null, the client is asking
     * us to tell it if there is a host for this orb.
     */
       sender.send(clientID, new OrbAttachMessage(
        msg.getCellID(), null, false));
    return;
      }

      logger.fine("Orb attached to " + msg.getHostCellID()
        + " is " + msg.isAttached());

      if (msg.isAttached()) {
    hostCellID = msg.getHostCellID();
    orbStatusListenerRef.get().setHostCellID(hostCellID);
      } else {
    orbStatusListenerRef.get().removeCallStatusListener(msg.getHostCellID());   
    hostCellID = null;
      }

      sender.send(message);
      return;
View Full Code Here

Examples of org.jdesktop.wonderland.modules.orb.common.messages.OrbAttachMessage

      if (this.callID.equals(callID)) {
          endCall(callID);
                sender.send(new OrbEndCallMessage(orbCellID));
      } else {
    if (hostCellID != null) {
                    sender.send(new OrbAttachMessage(orbCellID, hostCellID, false));
    }
      }
      break;
  }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.