Package edu.wisc.game.engine
Class RuleSet.Atom
- java.lang.Object
-
- edu.wisc.game.engine.RuleSet.Atom
-
-
Field Summary
Fields Modifier and Type Field Description RuleSet.BucketListbucketListPiece.Color[]colorsFor shape-and-color pieces, determines acceptable colors.intcounter-1 means "no limit"RuleSet.PositionListplistPiece.Shape[]shapesFor shape-and-color pieces, determines acceptable shapes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsColorShapeAndProperties(Piece p)Does this atom accept a specified piece, based on its shape and color?StringtoSrc()Format as the source code of the rules setStringtoString()
-
-
-
Field Detail
-
counter
public final int counter
-1 means "no limit"
-
shapes
public final Piece.Shape[] shapes
For shape-and-color pieces, determines acceptable shapes. Null means "no restriction"
-
colors
public Piece.Color[] colors
For shape-and-color pieces, determines acceptable colors. Null means "no restriction"
-
plist
public RuleSet.PositionList plist
-
bucketList
public RuleSet.BucketList bucketList
-
-