Package edu.wisc.game.engine
Class Order
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Vector<Integer>>,Collection<Vector<Integer>>,List<Vector<Integer>>,RandomAccess
An Order object describe a built-in or custom ordering of board cells
(positions)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumNames of built-in (predefined) orders -
Field Summary
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementDataFields inherited from class java.util.AbstractList
modCount -
Method Summary
Modifier and TypeMethodDescriptionfindEligiblePieces(BitSet onBoard) In the present board configuration, which piece(s) would be eligible to be picked right now under this order?toString()Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Method Details
-
toString
-
findEligiblePieces
In the present board configuration, which piece(s) would be eligible to be picked right now under this order?- Parameters:
onBoard- indicates which of the N*N cells are occupied.- Returns:
- a subset of onBoard consisting of the piece(s) "in the head" of this order. (E.g the topmost or rightmost pieces).
-