Package org.freerealm.unit

Examples of org.freerealm.unit.DefaultUnitGroupDefinition


    public Realm getRealm() {
        return realm;
    }

    public UnitGroupDefinition getUnitGroupDefinition() {
        DefaultUnitGroupDefinition unitGroupDefinition = new DefaultUnitGroupDefinition();
        Iterator<Unit> iterator = getUnitsIterator();
        while (iterator.hasNext()) {
            Unit unit = iterator.next();
            unitGroupDefinition.setQuantityForUnitType(unit.getType(), unitGroupDefinition.getQuantityForUnitType(unit.getType()) + 1);
        }
        return unitGroupDefinition;
    }
View Full Code Here

TOP

Related Classes of org.freerealm.unit.DefaultUnitGroupDefinition

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.