public enum ShapeType extends Enum<ShapeType>
Modifier and Type | Field and Description |
---|---|
static int |
COUNT |
static int |
I_ORD |
static int |
J_ORD |
static int |
L_ORD |
static ShapeType[] |
NONE |
static int |
O_ORD |
static int |
S_ORD |
static int |
T_ORD |
static int |
Z_ORD |
Modifier and Type | Method and Description |
---|---|
static ShapeType[] |
blocks() |
Shape |
down() |
Shape |
left() |
Shape |
right() |
Shape |
start() |
int |
startX() |
int |
startY() |
static Set<ShapeType> |
types(ShapeType[] types) |
Shape |
up() |
static ShapeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShapeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
int |
xystart() |
public static final ShapeType S
public static final ShapeType Z
public static final ShapeType J
public static final ShapeType L
public static final ShapeType T
public static final ShapeType I
public static final ShapeType O
public static final ShapeType G
public static final ShapeType GH
public static final int COUNT
public static final int S_ORD
public static final int Z_ORD
public static final int J_ORD
public static final int L_ORD
public static final int T_ORD
public static final int I_ORD
public static final int O_ORD
public static ShapeType[] NONE
public static ShapeType[] values()
for (ShapeType c : ShapeType.values()) System.out.println(c);
public static ShapeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int xystart()
public Shape start()
public static ShapeType[] blocks()
public int startX()
public int startY()
public Shape up()
public Shape down()
public Shape left()
public Shape right()
Copyright © 2015. All rights reserved.