Class Piece.Shape

Enclosing class:
Piece

public static class Piece.Shape extends Piece.PseudoEnum
  • Field Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • 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