Uses of Class
edu.wisc.game.sql.Piece
| Package | Description |
|---|---|
| edu.wisc.game.engine |
Top-level Game Server code
|
| edu.wisc.game.rest |
The RESTful web API
|
| edu.wisc.game.sql |
Persistent data structures
|
-
Uses of Piece in edu.wisc.game.engine
Methods in edu.wisc.game.engine with parameters of type Piece Modifier and Type Method Description booleanRuleSet.Atom. acceptsColorShapeAndProperties(Piece p, Expression.VarMap2 varMap)Does this atom accept a specified piece, based on its shape, color, and (in GS3+) any other properties? Since GS5, the "code:" field of the atom is also taken into account. -
Uses of Piece in edu.wisc.game.rest
-
Uses of Piece in edu.wisc.game.sql
Methods in edu.wisc.game.sql that return Piece Modifier and Type Method Description Piece[]Board. asBoardPieces()Produces an array of pieces with N*N elements, with nulls for empty cells.Piece[]Board. toPieceList()Creates an array with N*N+1 elements, where the element in position j represents the game piece, if any, in cell No.Methods in edu.wisc.game.sql that return types with arguments of type Piece Modifier and Type Method Description Vector<Piece>Board. getValue()Methods in edu.wisc.game.sql with parameters of type Piece Modifier and Type Method Description voidBoard. addPiece(Piece c)static StringEpisode. doHtmlDisplay(Piece[] pieces, int lastMovePos, boolean weShowAllMovables, boolean[] isMoveable, int cellWidth)static StringEpisode. graphicDisplayAscii(Piece[] pieces, int lastMovePos, boolean weShowAllMovables, boolean[] isMoveable, boolean html)Retired from the web game server; still used in Captive Game Server.static BitSetEpisode. onBoard(Piece[] pieces)voidBoard. removePiece(Piece c)Method parameters in edu.wisc.game.sql with type arguments of type Piece Modifier and Type Method Description voidBoard. setValue(Vector<Piece> _value)Constructors in edu.wisc.game.sql with parameters of type Piece Constructor Description Board(Piece[] pieces, Piece[] removedPieces, BitSet[] moveableTo)Creates a board object to be sent out (as JSON) to the player's client, based on the current state of the episode.BucketVarMap2(Piece p, int bucketNo)