Package org.pokenet.server.backend.map

Examples of org.pokenet.server.backend.map.ServerMap.loadData()


        nextMap = new File("res/maps/" + String.valueOf(x) + "." + String.valueOf(y) + ".tmx");
        if(nextMap.exists()) {
          try {
            s = new ServerMap(loader.readMap(nextMap.getCanonicalPath()), x, y);
            s.setMapMatrix(m_mapMatrix);
            s.loadData();
            m_mapMatrix.setMap(s , x + 50, y + 50);
            Thread.sleep(100);
          } catch (Exception e) {
            System.err.println("Error loading " + x + "." + y + ".tmx - Bad map file");
            m_mapMatrix.setMap(null, x + 50, y + 50);
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.