Package org.freerealm.xmlwrapper.player

Examples of org.freerealm.xmlwrapper.player.NationManagerXMLWrapper


        xml.append((new TileTypeManagerXMLWrapper(realm.getTileTypeManager())).toXML() + "\n");
        xml.append((new TileImprovementManagerXMLConverter()).toXML(realm.getTileImprovementTypeManager()) + "\n");
        xml.append(new VegetationManagerImplXMLConverter().toXML(realm.getVegetationManager()));
        xml.append((new UnitTypeManagerXMLWrapper(realm.getUnitTypeManager())).toXML() + "\n");
        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");
View Full Code Here


        (new UnitTypeManagerXMLWrapper(unitTypeManager)).initializeFromNode(realm, unitTypesNode);
        realm.setUnitTypeManager(unitTypeManager);

        Node nationsNode = XMLConverterUtility.findNode(node, "Nations");
        NationManager nationManager = new NationManager();
        (new NationManagerXMLWrapper(nationManager)).initializeFromNode(realm, nationsNode);
        realm.setNationManager(nationManager);

        Node playersNode = XMLConverterUtility.findNode(node, "Players");
        PlayerManager playerManager = new PlayerManager();
        (new PlayerManagerXMLWrapper(playerManager)).initializeFromNode(realm, playersNode);
View Full Code Here

        UnitTypeManager unitTypeManager = new UnitTypeManager();
        (new UnitTypeManagerXMLWrapper(unitTypeManager)).initializeFromNode(realm, getRootNodeFromFile(configProperties.getProperty("unittypes_filename")));
        realm.setUnitTypeManager(unitTypeManager);

        NationManager nationManager = new NationManager();
        (new NationManagerXMLWrapper(nationManager)).initializeFromNode(realm, getRootNodeFromFile(configProperties.getProperty("nations_filename")));
        realm.setNationManager(nationManager);
        realm.setPlayerManager(new PlayerManager());
        realm.setDiplomacy(new Diplomacy());
        realm.setNumberOfTurns(0);
        realm.setHistory(new FreeRealmHistory());
View Full Code Here

TOP

Related Classes of org.freerealm.xmlwrapper.player.NationManagerXMLWrapper

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.