Uses of Class
edu.wisc.game.sql.Piece.Color
Packages that use Piece.Color
Package
Description
Top-level Game Server code
The RESTful web API
Persistent data structures
-
Uses of Piece.Color in edu.wisc.game.engine
Fields in edu.wisc.game.engine declared as Piece.ColorModifier and TypeFieldDescriptionRuleSet.Atom.colors
For shape-and-color pieces, determines acceptable colors.Methods in edu.wisc.game.engine that return types with arguments of type Piece.ColorModifier and TypeMethodDescriptionRuleSet.listAllColors()
Lists all colors used in this rule set.Methods in edu.wisc.game.engine with parameters of type Piece.ColorModifier and TypeMethodDescriptionStalemateTester.canStalemate
(Piece.Shape[] shapes, Piece.Color[] colors, String[] allImages) Is there any board composed of any pieces of the specified colors and shapes on which this rule set will stalemate? As always, we assume that all atoms in the rules are "non-disappearing", i.e. -
Uses of Piece.Color in edu.wisc.game.rest
Fields in edu.wisc.game.rest declared as Piece.ColorMethods in edu.wisc.game.rest that return Piece.ColorMethods in edu.wisc.game.rest with parameters of type Piece.ColorModifier and TypeMethodDescriptionColorMap.getHex
(Piece.Color color, boolean brighten) boolean
ColorMap.hasColor
(Piece.Color color) -
Uses of Piece.Color in edu.wisc.game.sql
Fields in edu.wisc.game.sql declared as Piece.ColorModifier and TypeFieldDescriptionstatic final Piece.Color
Piece.Color.BLACK
static final Piece.Color
Piece.Color.BLUE
static final Piece.Color[]
Piece.Color.legacyColors
The four original colors, inherited from Game Engine 1.0, and used for compatibility with old trial list files.static final Piece.Color
Piece.Color.RED
static final Piece.Color
Piece.Color.YELLOW
Methods in edu.wisc.game.sql that return Piece.ColorModifier and TypeMethodDescriptionstatic Piece.Color
static Piece.Color[]
Piece.Color.findColors
(String[] v) Piece.xgetColor()
Methods in edu.wisc.game.sql with parameters of type Piece.ColorModifier and TypeMethodDescriptionvoid
Piece.setColor
(Piece.Color x) This is how it used by our JsonToJava, when reading board filesConstructors in edu.wisc.game.sql with parameters of type Piece.ColorModifierConstructorDescriptionBoard
(RandomRG random, int randomCnt, int nShapes, int nColors, Piece.Shape[] allShapes, Piece.Color[] allColors) The main constructor for a random initial board in GS 2.*.Game
(RandomRG _random, RuleSet _rules, int _randomObjCnt, int _nShapes, int _nColors, Piece.Shape[] _allShapes, Piece.Color[] _allColors) A game with shape-and-color objects used as game piecesGame
(RandomRG _random, RuleSet _rules, int _randomObjCnt, Piece.Shape[] _allShapes, Piece.Color[] _allColors) Piece
(Piece.Shape _shape, Piece.Color _color, int _x, int _y) Creates a traditional (shape+color) game piece placed at a specified location.RandomGameGenerator
(RandomRG _random, File ruleSetFile, int[] _nPiecesRange, int[] _nShapesRange, int[] _nColorsRange, Piece.Shape[] _allShapes, Piece.Color[] _allColors)