Package sc.client.world

Examples of sc.client.world.Container


   * being sent from the server.
   * @throws IOException
   */
  private void readObject() throws IOException
  {
    Container object = null;
    String type = this.codedinput.readString();
    String id = this.codedinput.readString();
    String key = type + id;

    if (Client.containers.containsKey(key))
      object = Client.containers.get(key).get(0);
    else
    {
      if (type.equals("tile"))
        object = new Tile();
      else if (type.equals("avatar"))
        object = new Avatar(id);
    }
   
    object.read(this.codedinput);
   
    // Add to all known containers if not already
    List<Container> objectlist = new ArrayList<Container>();
    objectlist.add(object);
    Client.containers.put(object.getID(), objectlist);
  }
View Full Code Here

TOP

Related Classes of sc.client.world.Container

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.