Package net.tacospice.stevenet.NetworkMessages

Examples of net.tacospice.stevenet.NetworkMessages.CreateNode


    for (Node n : nodes.values())
    {
      if (!n.wasBroadcast())
        continue;

      CreateNode cn = new CreateNode();
      cn.id = n.getId();
      cn.classId = n.getClassId();
      cn.owner = n.getOwner() == connectionId;

      sendToTCP(connectionId, cn);
View Full Code Here


      for (Node n : nodes.values())
      {
        // Broadcast to clients if necessary
        if (isServer && !n.wasBroadcast())
        {
          CreateNode cn = new CreateNode();
          cn.id = n.getId();
          cn.classId = n.getClassId();
          cn.owner = false;

          sendToAllExceptTCP(n.getOwner(), cn);

          // If node has owner, send special message
          if (n.getOwner() != -1)
          {
            cn = new CreateNode();
            cn.id = n.getId();
            cn.classId = n.getClassId();
            cn.owner = true;

            sendToTCP(n.getOwner(), cn);
View Full Code Here

        }

        // Node created
        if (object instanceof CreateNode)
        {
          CreateNode cn = (CreateNode) object;

          nodeCreated(cn.id, cn.classId, cn.owner);
          return;
        }
View Full Code Here

TOP

Related Classes of net.tacospice.stevenet.NetworkMessages.CreateNode

Copyright © 2018 www.massapicom. 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.