Package edu.wisc.game.sql
Class Piece.Shape
java.lang.Object
edu.wisc.game.sql.Piece.PseudoEnum
edu.wisc.game.sql.Piece.Shape
- Enclosing class:
- Piece
public static class Piece.Shape extends Piece.PseudoEnum
-
Field Summary
Fields Modifier and Type Field Description static Piece.Shape
CIRCLE
static Piece.Shape[]
legacyShapes
static Piece.Shape
SQUARE
static Piece.Shape
STAR
static Piece.Shape
TRIANGLE
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
static Piece.Shape
findShape(String s)
Finds an already existing Shape object with a specified name, or creates a new onestatic Piece.Shape[]
findShapes(String[] v)
Collection<Piece.Shape>
listAllShapes()
Lists all shapes known to the system so farString
symbol()
A human-readable representation of the shape, for use in ASCII graphics
-
Field Details
-
Method Details
-
equals
-
listAllShapes
Lists all shapes known to the system so far -
findShape
Finds an already existing Shape object with a specified name, or creates a new one -
findShapes
-
symbol
A human-readable representation of the shape, for use in ASCII graphics
-