Package marauroa.common.game

Examples of marauroa.common.game.Perception


    }
    return ruleProcessor.createCharacter(username, character, template);
  }

  private Perception getPlayerPerception(PlayerEntry entry) {
    Perception perception = null;

    IRPZone.ID id = new IRPZone.ID(entry.object.get("zoneid"));
    IRPZone zone = world.getRPZone(id);

    if (entry.requestedSync == false) {
View Full Code Here


          playersToRemove.add(entry);
          continue;
        }

        if (entry.state == ClientState.GAME_BEGIN) {
          Perception perception = getPlayerPerception(entry);
          sendPlayerPerception(entry, perception, entry.object);
        }
      } catch (Exception e) {
        logger.error("Removing player(" + entry.clientid + ") because it caused a Exception while contacting it", e);
        playersToRemove.add(entry);
View Full Code Here

    rand.setSeed(new Date().getTime());

    objects = new LinkedHashMap<RPObject.ID, RPObject>();
    modified = new HashSet<RPObject>();

    perception = new Perception(Perception.DELTA, this.zoneid);
  }
View Full Code Here

      }

      return prebuildDeltaPerception;
    } else /* type==Perception.SYNC */{
      if (prebuildSyncPerception == null) {
        prebuildSyncPerception = new Perception(Perception.SYNC, getID());
        prebuildSyncPerception.addedList = new ArrayList<RPObject>(objects.size());
        for (RPObject obj : objects.values()) {
          if (!obj.isHidden()) {
            prebuildSyncPerception.addedList.add(obj);
          }
View Full Code Here

TOP

Related Classes of marauroa.common.game.Perception

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.