Examples of OrbBystandersMessage


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

      return;
  }

  if (message instanceof OrbBystandersMessage) {
      OrbBystandersMessage msg = (OrbBystandersMessage) message;
      setBystanders(msg.getBystanders());
      return;
  }

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

      usernameAlias = msg.getName();

      if (presenceInfoAdded) {
    presenceInfo.setUsernameAlias(usernameAlias);
          pm.requestChangeUsernameAlias(presenceInfo.getUsernameAlias());
      }

      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.OrbBystandersMessage

    public void setBystanders(String[] bystanders) {
  CommsManager cm = WonderlandContext.getCommsManager();

        WonderlandClientSender sender = cm.getSender(CellChannelConnectionType.CLIENT_TYPE);

  sender.send(new OrbBystandersMessage(cellID, bystanders));
    }
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.