## Uses of Class
edu.wisc.game.sql.Piece.Shape

- Packages that use Piece.Shape
  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.Shape in edu.wisc.game.engine

    Fields in edu.wisc.game.engine declared as Piece.Shape
    Modifier and Type | Field | Description
    --- | --- | ---
    `Piece.Shape[]` | RuleSet.Atom.`shapes` | For shape-and-color pieces, determines acceptable shapes.

    Methods in edu.wisc.game.engine that return types with arguments of type Piece.Shape
    Modifier and Type | Method | Description
    --- | --- | ---
    `HashSet<Piece.Shape>` | RuleSet.`listAllShapes()` | Lists all shapes used in this rule set.

  - ### Uses of Piece.Shape in edu.wisc.game.rest

    Fields in edu.wisc.game.rest declared as Piece.Shape
    Modifier and Type | Field | Description
    --- | --- | ---
    `Piece.Shape[]` | ParaSet.`shapes` | Will be set as appropriate if specified in the CSV file "colors" column

    Methods in edu.wisc.game.rest that return Piece.Shape
    Modifier and Type | Method | Description
    --- | --- | ---
    `static Piece.Shape[]` | ParaSet.`parseShapes​(String val)` | Parses a semicolon-separated list of shapes.

    Methods in edu.wisc.game.rest with parameters of type Piece.Shape
    Modifier and Type | Method | Description
    --- | --- | ---
    `static File` | Files.`getSvgFile​(Piece.Shape shape)` |

  - ### Uses of Piece.Shape in edu.wisc.game.sql

    Fields in edu.wisc.game.sql declared as Piece.Shape
    Modifier and Type | Field | Description
    --- | --- | ---
    `static Piece.Shape` | Piece.Shape.`CIRCLE` |
    `static Piece.Shape[]` | Piece.Shape.`legacyShapes` |
    `static Piece.Shape` | Piece.Shape.`SQUARE` |
    `static Piece.Shape` | Piece.Shape.`STAR` |
    `static Piece.Shape` | Piece.Shape.`TRIANGLE` |

    Methods in edu.wisc.game.sql that return Piece.Shape
    Modifier and Type | Method | Description
    --- | --- | ---
    `static Piece.Shape` | Piece.Shape.`findShape​(String s)` | Finds an already existing Shape object with a specified name, or creates a new one
    `Piece.Shape` | Piece.`xgetShape()` | For use in our application

    Methods in edu.wisc.game.sql that return types with arguments of type Piece.Shape
    Modifier and Type | Method | Description
    --- | --- | ---
    `Collection<Piece.Shape>` | Piece.Shape.`listAllShapes()` | Lists all shapes known to the system so far

    Methods in edu.wisc.game.sql with parameters of type Piece.Shape
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | Piece.`setShape​(Piece.Shape x)` | This is how it used by our JsonToJava

    Constructors in edu.wisc.game.sql with parameters of type Piece.Shape
    Constructor | Description
    --- | ---
    `Board​(int randomCnt, int nShapes, int nColors, Piece.Shape[] allShapes, Piece.Color[] allColors)` | The main constructor for a random initial board in GS 2.*.
    `Game​(RuleSet _rules, int _randomObjCnt, int _nShapes, int _nColors, Piece.Shape[] _allShapes, Piece.Color[] _allColors)` | A game with shape-and-color objects used as game pieces
    `Game​(RuleSet _rules, int _randomObjCnt, Piece.Shape[] _allShapes, Piece.Color[] _allColors)` |
    `Piece​(Piece.Shape _shape, Piece.Color _color, int _x, int _y)` |
    `RandomGameGenerator​(File ruleSetFile, int[] _nPiecesRange, int[] _nShapesRange, int[] _nColorsRange, Piece.Shape[] _allShapes, Piece.Color[] _allColors)` |