public class XYShapes extends Object
Modifier and Type | Field and Description |
---|---|
static int[] |
CANONICAL_SHAPES |
static int |
MASK_DIR |
static int |
MASK_TYPE |
static int |
MASK_TYPE_POS |
static int |
MASK_X |
static int |
MASK_Y |
static int |
SHAPE_MAX |
static int |
SIZE_TYPE_POS |
Constructor and Description |
---|
XYShapes() |
Modifier and Type | Method and Description |
---|---|
static int |
canonical(int xyshape) |
static boolean |
has(int xyshape,
int x,
int y) |
static int[] |
inverseKickedLeft(int xyshape) |
static int[] |
inverseKickedRight(int xyshape) |
static boolean |
isSynonym(int xyshape) |
static int[] |
kickedLeft(int xyshape) |
static int[] |
kickedRight(int xyshape) |
static int |
rotatedLeft(int xyshape) |
static int |
rotatedRight(int xyshape) |
static Shape |
shapeFromInt(int i) |
static int |
shapeIdFromInt(int i) |
static int |
shapeTypeIdFromInt(int i) |
static int |
shiftedDown(int xyshape) |
static int |
shiftedLeft(int xyshape) |
static int |
shiftedRight(int xyshape) |
static int |
shiftedUp(int xyshape) |
static int |
startIntForTypeId(int type) |
static int |
stopIntForTypeId(int type) |
static String |
toString(int xyshape) |
static int |
toXYShape(int x,
int y,
int shape) |
static int |
toXYShape(int x,
int y,
Shape shape) |
static int |
xFromInt(int i) |
static int |
yFromInt(int i) |
public static final int SHAPE_MAX
public static final int[] CANONICAL_SHAPES
public static final int MASK_X
public static final int MASK_Y
public static final int MASK_DIR
public static final int MASK_TYPE
public static final int MASK_TYPE_POS
public static final int SIZE_TYPE_POS
public static int startIntForTypeId(int type)
public static int stopIntForTypeId(int type)
public static boolean has(int xyshape, int x, int y)
public static int toXYShape(int x, int y, Shape shape)
public static int toXYShape(int x, int y, int shape)
public static int xFromInt(int i)
public static int yFromInt(int i)
public static int shapeIdFromInt(int i)
public static int shapeTypeIdFromInt(int i)
public static Shape shapeFromInt(int i)
public static int rotatedRight(int xyshape)
public static int rotatedLeft(int xyshape)
public static int shiftedLeft(int xyshape)
public static int shiftedRight(int xyshape)
public static int shiftedDown(int xyshape)
public static int shiftedUp(int xyshape)
public static int[] kickedLeft(int xyshape)
public static int[] kickedRight(int xyshape)
public static int[] inverseKickedLeft(int xyshape)
public static int[] inverseKickedRight(int xyshape)
public static boolean isSynonym(int xyshape)
public static int canonical(int xyshape)
public static String toString(int xyshape)
Copyright © 2015. All rights reserved.