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.ShapeCIRCLEstatic Piece.Shape[]legacyShapesstatic Piece.ShapeSQUAREstatic Piece.ShapeSTARstatic Piece.ShapeTRIANGLE -
Method Summary
Modifier and Type Method Description booleanequals(Object o)static Piece.ShapefindShape(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 farStringsymbol()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
-