Package edu.wisc.game.engine
Class RuleSet.BucketList
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Expression.ArithmeticExpression>
,Collection<Expression.ArithmeticExpression>
,List<Expression.ArithmeticExpression>
,RandomAccess
- Enclosing class:
RuleSet
A BucketList represents the information about the destination
buckets given in the "buckets" field of an atom. It is a list of
arithmetic expressions, each of which can be a numeric constant
or a more complicated expressions making use of the "bucket arithmetic"
and "bucket variables".
- See Also:
-
Field Summary
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
Fields inherited from class java.util.AbstractList
modCount
-
Method Summary
Modifier and TypeMethodDescriptionboolean
destinationAllowed
(Expression.VarMap2 varMap, int bucketNo) Used in GS5destinations
(Expression.VarMap varMap) To which destinations can a piece be taken? (Used in GS1 thru 4)The list of variables mentioned in this BucketSelectortoSrc()
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, trimToSize
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Method Details
-
toString
- Overrides:
toString
in classVector<Expression.ArithmeticExpression>
-
toSrc
-
destinations
To which destinations can a piece be taken? (Used in GS1 thru 4)- Parameters:
varMap
- Information about p, ps, pc, Nearby etc for the piece under consideration
-
destinationAllowed
Used in GS5 -
listAllVars
The list of variables mentioned in this BucketSelector
-