Package civquest.units

Examples of civquest.units.Unit


  public Iterator<Long> getAllUnits(Long nation) {
    Set<Long> retUnits = new HashSet<Long>();
    Iterator<Unit> allUnitsIterator = getUnitIterator();
    while (allUnitsIterator.hasNext()) {
      Unit currUnit = allUnitsIterator.next();
      if (nation.equals(currUnit.getOwner().getID())) {
        retUnits.add(currUnit.getID());
      }
    }
    return retUnits.iterator();     
  }
View Full Code Here

TOP

Related Classes of civquest.units.Unit

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.