|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgames.strategy.triplea.util.UnitSeperator
public class UnitSeperator
Seperates a group of units into distinct categories.
| Method Summary | |
|---|---|
static java.util.Set<UnitCategory> |
categorize(java.util.Collection<Unit> units)
|
static java.util.Set<UnitCategory> |
categorize(java.util.Collection<Unit> units,
java.util.Map<Unit,java.util.Collection<Unit>> dependent,
boolean categorizeMovement)
Legacy interface. |
static java.util.Set<UnitCategory> |
categorize(java.util.Collection<Unit> units,
java.util.Map<Unit,java.util.Collection<Unit>> dependent,
boolean categorizeMovement,
boolean sort)
|
static java.util.Set<UnitCategory> |
categorize(java.util.Collection<Unit> units,
java.util.Map<Unit,java.util.Collection<Unit>> dependent,
boolean categorizeMovement,
boolean categorizeTrnMovement,
boolean sort)
Break the units into discrete categories. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.Set<UnitCategory> categorize(java.util.Collection<Unit> units)
public static java.util.Set<UnitCategory> categorize(java.util.Collection<Unit> units,
java.util.Map<Unit,java.util.Collection<Unit>> dependent,
boolean categorizeMovement,
boolean sort)
public static java.util.Set<UnitCategory> categorize(java.util.Collection<Unit> units,
java.util.Map<Unit,java.util.Collection<Unit>> dependent,
boolean categorizeMovement,
boolean categorizeTrnMovement,
boolean sort)
dependent - - can be nullcategorizeMovement - - whether to categorize by movementcategorizeTrnMovement - - whether to categorize transports by movement- - sort - if true then sort the categories in UnitCategory order
- if false, then leave categories in original order (based on units)
public static java.util.Set<UnitCategory> categorize(java.util.Collection<Unit> units,
java.util.Map<Unit,java.util.Collection<Unit>> dependent,
boolean categorizeMovement)
dependent - - can be nullcategorizeMovement - - whether to categorize by movement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||