Examples of applyDifferences()


Examples of marauroa.common.game.RPObject.applyDifferences()

    try {
      /* First we remove the deleted attributes */
      for (RPObject object : message.getModifiedDeletedRPObjects()) {
        RPObject w_object = world.get(object.getID());
        if (!listener.onModifiedDeleted(w_object, object)) {
          w_object.applyDifferences(null, object);
        }
      }

      /* And then we add the new and modified attributes */
      for (RPObject object : message.getModifiedAddedRPObjects()) {
View Full Code Here

Examples of marauroa.common.game.RPObject.applyDifferences()

        if (w_object == null) {
          logger.warn("Missing base object for modified added RPObject with id " + object.getID());
          continue;
        }
        if (!listener.onModifiedAdded(w_object, object)) {
          w_object.applyDifferences(object, null);
        }
      }
    } catch (RPObjectNotFoundException e) {
      logger.error("error in applyModifiedRPObjects", e);
      logger.error("world is [" + world.toString() + "]");
View Full Code Here

Examples of marauroa.common.game.RPObject.applyDifferences()

          return;
        }

        RPObject object = world.get(id);

        object.applyDifferences(added, deleted);
      }
    } catch (Exception e) {
      logger.error("error in applyPerceptionMyRPObject", e);
      throw new RPObjectNotFoundException(RPObject.INVALID_ID);
    }
View Full Code Here

Examples of marauroa.common.game.RPObject.applyDifferences()

              break;
              }
            }
       
          try {
        object.applyDifferences(hidden,null);
      } catch (Exception e) {
        e.printStackTrace();
      }
         
      // Player has changed Zone
View Full Code Here

Examples of marauroa.common.game.RPObject.applyDifferences()

      try
        {
        if(changed)
          {         
          RPObject player=(RPObject)world_objects.get(object.getID());
          player.applyDifferences(object,null);
          world_objects.put(player.getID(),player);
          }
        }
      catch(Exception e)
        {
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.