public enum PieceShape
Eine Enumeration aller 21 verschiedenen Formen, als Set of class Coordinates
.
class Coordinates
public static PieceShape MONO
public static PieceShape DOMINO
public static PieceShape TRIO_L
public static PieceShape TRIO_I
public static PieceShape TETRO_O
public static PieceShape TETRO_T
public static PieceShape TETRO_I
public static PieceShape TETRO_L
public static PieceShape TETRO_Z
public static PieceShape PENTO_L
public static PieceShape PENTO_T
public static PieceShape PENTO_V
public static PieceShape PENTO_S
public static PieceShape PENTO_Z
public static PieceShape PENTO_I
public static PieceShape PENTO_P
public static PieceShape PENTO_W
public static PieceShape PENTO_U
public static PieceShape PENTO_R
public static PieceShape PENTO_X
public static PieceShape PENTO_Y
@NotNull public java.util.Set<sc.plugin2021.Coordinates> getCoordinates()
Die normalisierten Koordinaten, die die tatsächliche Form ausmachen.
@NotNull public Vector getDimension()
Ein Vector, der das kleinstmögliche Rechteck beschreibt, dass die vollständige Form umfasst.
@NotNull public java.util.Set<sc.plugin2021.Vector> getAsVectors()
Die Form als Sammlung aus Vektoren.
public int getSize()
Die Größe Der Form, als Anzahl an Feldern, die es belegt.
@NotNull public java.util.Map<java.util.Set,kotlin.Pair> getVariants()
Eine Sammlung aller möglichen Varianten der Form, zusammen mit einer Transformation, die sie erzeugt hat.
get
@NotNull public java.util.Map<kotlin.Pair,java.util.Set> getTransformations()
Eine Map aller Transformationen sowie die entsprechende resultierende Variante.
@NotNull public java.util.Set<sc.plugin2021.Coordinates> get(@NotNull Rotation rotation, boolean shouldFlip)
Index Operator, der die den Parametern entsprechende Variation zurückgibt.
Syntax: PieceShape[Rotation, shouldFlip]
rotation
- um wie viel die Form rotiert werden sollshouldFlip
- ob die Form entlang der y-Achse gespiegelt werden sollclass Coordinates
, welches die entsprechend gedrehte Variante der ursprünglichen Form ist.