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
All Methods Static Methods Instance Methods Concrete Methods 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-
Methods inherited from class edu.wisc.game.sql.Piece.PseudoEnum
hashCode, toString
-
-
-
-
Field Detail
-
SQUARE
public static final Piece.Shape SQUARE
-
STAR
public static final Piece.Shape STAR
-
CIRCLE
public static final Piece.Shape CIRCLE
-
TRIANGLE
public static final Piece.Shape TRIANGLE
-
legacyShapes
public static final Piece.Shape[] legacyShapes
-
-
Method Detail
-
listAllShapes
public Collection<Piece.Shape> listAllShapes()
Lists all shapes known to the system so far
-
findShape
public static Piece.Shape findShape(String s)
Finds an already existing Shape object with a specified name, or creates a new one
-
findShapes
public static Piece.Shape[] findShapes(String[] v)
-
symbol
public String symbol()
A human-readable representation of the shape, for use in ASCII graphics
-
-