Package edu.wisc.game.engine
Class PositionList
- java.lang.Object
-
- edu.wisc.game.engine.PositionList
-
public class PositionList extends Object
Represents the restrictions on the positions from which game pieces can be picked. An auxiliary class for RuleSet
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsPicking(int pos, HashMap<String,BitSet> eligibleForEachOrder)Does this position list presently allow picking a piece from the specified position?booleanisTrivial()StringtoSrc()StringtoString()
-
-
-
Method Detail
-
isTrivial
public boolean isTrivial()
-
toSrc
public String toSrc()
-
allowsPicking
public boolean allowsPicking(int pos, HashMap<String,BitSet> eligibleForEachOrder)Does this position list presently allow picking a piece from the specified position?- Parameters:
eligibleForEachOrder- What positions are now "in front" of each order. If null is passed here (that's only used in some simplified board generation modes), no acceptance based on orders happens.
-
-