Package org.freerealm.xmlwrapper.map

Examples of org.freerealm.xmlwrapper.map.WorldMapXMLWrapper


        xml.append((new CityImprovementManagerXMLWrapper(realm.getSettlementImprovementManager())).toXML() + "\n");
        xml.append((new NationManagerXMLWrapper(realm.getNationManager())).toXML() + "\n");
        xml.append((new PlayerManagerXMLWrapper(realm.getPlayerManager())).toXML() + "\n");
        xml.append((new DiplomacyXMLConverter()).toXML(realm.getDiplomacy()) + "\n");
        xml.append((new FreeRealmHistoryXMLConverter()).toXML(realm.getHistory()) + "\n");
        xml.append((new WorldMapXMLWrapper(realm.getWorldMap())).toXML());
        xml.append("</Realm>\n");
        return xml.toString();
    }
View Full Code Here


        History history = (new FreeRealmHistoryXMLConverter()).initializeFromNode(realm, historyNode);
        realm.setHistory(history);

        Node worldMapNode = XMLConverterUtility.findNode(node, "WorldMap");
        WorldMap worldMap = new WorldMap();
        (new WorldMapXMLWrapper(worldMap)).initializeFromNode(realm, worldMapNode);

        Iterator<Player> playerIterator = realm.getPlayerManager().getPlayersIterator();
        while (playerIterator.hasNext()) {
            Player player = playerIterator.next();
            Iterator<Settlement> settlementsIterator = player.getSettlementsIterator();
View Full Code Here

            return new CommandResult(CommandResult.RESULT_ERROR, "IOException : " + exception.getMessage());
        }
        NodeList nodeList = builder.getDocument().getElementsByTagName("WorldMap");
        Node worldMapNode = nodeList.item(0);
        WorldMap worldMap = new WorldMap();
        (new WorldMapXMLWrapper(worldMap)).initializeFromNode(realm, worldMapNode);
        realm.setWorldMap(worldMap);
        realm.setPathFinder(new AStarPathFinder(realm, 100));
        return new CommandResult(CommandResult.RESULT_OK, "");
    }
View Full Code Here

TOP

Related Classes of org.freerealm.xmlwrapper.map.WorldMapXMLWrapper

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.