Class PieceSorter
java.lang.Object
VASSAL.counters.PieceSorter
- All Implemented Interfaces:
Comparator<GamePiece>
Sorts GamePieces according to their position:
If on different Maps, order by Map id
If in different Stacks order by Stack position on the Map
If in the same Stack, order by position within the Stack
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
PieceSorter
public PieceSorter()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<GamePiece>
-