Package org.freerealm.vegetation

Examples of org.freerealm.vegetation.VegetationManagerImpl


     */
    public CommandResult execute(Realm realm) {
        realm.setResourceManager(new ResourceManager());
        realm.setBonusResourceManager(new BonusResourceManager());
        realm.setTileTypeManager(new TileTypeManager());
        realm.setVegetationManager(new VegetationManagerImpl());
        realm.setTileImprovementTypeManager(new TileImprovementTypeManager());
        realm.setSettlementImprovementManager(new SettlementImprovementManager());
        realm.setUnitTypeManager(new UnitTypeManager());
        realm.setNationManager(new NationManager());
        realm.setPlayerManager(new PlayerManager());
View Full Code Here


        xml.append("</VegetationTypes>\n");
        return xml.toString();
    }

    public VegetationManager initializeFromNode(Realm realm, Node node) {
        VegetationManagerImpl vegetationManager = new VegetationManagerImpl();
        for (Node vegetationNode = node.getFirstChild(); vegetationNode != null; vegetationNode = vegetationNode.getNextSibling()) {
            if (vegetationNode.getNodeType() == Node.ELEMENT_NODE) {
                Vegetation vegetation = (new VegetationImplXMLConverter()).initializeFromNode(realm, vegetationNode);
                vegetationManager.addVegetation(vegetation);
            }
        }
        return vegetationManager;
    }
View Full Code Here

TOP

Related Classes of org.freerealm.vegetation.VegetationManagerImpl

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.