Package cn.com.hotmaze.util

Examples of cn.com.hotmaze.util.RoomMap


      Element root = doc.getRootElement();
      for(Iterator<?> itr = root.elementIterator();itr.hasNext();){
        Element em = (Element) itr.next();
        Attribute index = em.attribute("map_name");
        System.out.println("�����ͼ "+index.getValue()+".....");
        RoomMap map = new RoomMap("res/map/"+index.getValue()+".xml");
        MapContext.map.putIfAbsent(index.getValue(),map);
      }
      doc.closeXML();
    }
View Full Code Here


         }   
        return single; 
   
 
  public RoomMap createMapById(String map_id){
    RoomMap map = ((Map<String, RoomMap>) MapContext.map).get(map_id);
    System.out.println("can't find map "+map_id);
    assert(map != null);
    return map.clone();
  }
View Full Code Here

  }
 
  public void reloadAllMap(){
    Iterator<String>  itr = MapContext.map.keySet().iterator();
    while(itr.hasNext()){
      RoomMap map = (RoomMap)MapContext.map.get(itr.next());
      map.Init((String)itr.next());
    }
  }
View Full Code Here

TOP

Related Classes of cn.com.hotmaze.util.RoomMap

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.