Package marauroa.client.net

Examples of marauroa.client.net.PerceptionHandler


 
  public PingClient(String loggingProperties) {
      super(loggingProperties);
     
    PingPerceptionListener listener = new PingPerceptionListener();
    handler = new PerceptionHandler(listener);
   
    objects=new HashMap<ID,RPObject>();
    }
View Full Code Here


  public SimpleClient(String loggingProperties) {
    super(loggingProperties);

    listener = new MockPerceptionListener();
    handler = new PerceptionHandler(listener);
    isSynced = false;
    perceptions = 0;
  }
View Full Code Here

    this.host = h;
    this.username = u;
    this.password = p;
    this.character = c;
    this.port = P;
    this.handler = new PerceptionHandler(new PerceptionErrorListener());
    this.worldObjects = new HashMap<RPObject.ID, RPObject>();
    this.createAccount = createAccount;
  }
View Full Code Here

    character = c;
    port = P;

    world_objects = new HashMap<RPObject.ID, RPObject>();

    handler = new PerceptionHandler(new PerceptionErrorListener());

    clientManager = new marauroa.client.ClientFramework(
        "games/stendhal/log4j.properties") {

      @Override
View Full Code Here

    rpobjDispatcher = new RPObjectChangeDispatcher(gameObjects, userContext);
    final PerceptionToObject po = new PerceptionToObject();
    po.setObjectFactory(new ObjectFactory());
    perceptionDispatcher.register(po);
    stendhalPerceptionListener = new StendhalPerceptionListener(perceptionDispatcher, rpobjDispatcher, userContext, world_objects);
    handler = new PerceptionHandler(stendhalPerceptionListener);

    cache = new Cache();
    cache.init();

    directions = new ArrayList<Direction>(2);
View Full Code Here

    character = c;
    port = P;

    world_objects = new HashMap<RPObject.ID, RPObject>();

    handler = new PerceptionHandler(new IPerceptionListener() {

      public boolean onAdded(final RPObject object) {
        return false;
      }
View Full Code Here

    players = new Vector<RPObject>();
    ghosts = new Vector<RPObject>();
    dots = new Vector<RPObject>();
    myPlayerName = null;
    running=true;
    phandler = new PerceptionHandler(new MaPacmanPerceptionListener());
    world_objects=new HashMap<RPObject.ID, RPObject>();
    wall_objects=new HashMap<RPObject.ID, RPObject>();
    common.initRPClasses();
    GUI = new MaPacmanGui(this);
    GUI.setVisible(true);
View Full Code Here

   * creates a new MarboardClientFramework to communicate using Marauroa
   *
   * @param board the whiteboard with the shape information
   */
  public MarboardClientFramework(CurrentBoard board) {
    handler = new PerceptionHandler(this);
    objects = new HashMap<ID,RPObject>();
    this.board = board;
    MarboardClientFramework.instance = this;
  }
View Full Code Here

TOP

Related Classes of marauroa.client.net.PerceptionHandler

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.