Package org.freerealm.property

Examples of org.freerealm.property.ContainerProperty.addResource()


        for (Node subNode = node.getFirstChild(); subNode != null; subNode = subNode.getNextSibling()) {
            if (subNode.getNodeType() == Node.ELEMENT_NODE) {
                if (subNode.getNodeName().equals("Resource")) {
                    String resourceNameValue = subNode.getFirstChild().getNodeValue();
                    Resource resource = realm.getResourceManager().getResource(resourceNameValue);
                    containerProperty.addResource(resource);
                } else if (subNode.getNodeName().equals("UnitType")) {
                    String unitTypeIdValue = subNode.getFirstChild().getNodeValue();
                    int unitTypeId = Integer.parseInt(unitTypeIdValue);
                    containerProperty.addUnitType(unitTypeId);
                } else if (subNode.getNodeName().equals("Population")) {
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.