|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ShapeType>
org.eviline.ShapeType
public enum ShapeType
Possible types of Shape
s.
Enum Constant Summary | |
---|---|
I
|
|
J
|
|
L
|
|
O
|
|
S
|
|
T
|
|
Z
|
Method Summary | |
---|---|
Shape |
down()
|
Block |
inactive()
Returns the inactive block associated with this shape type |
Shape |
left()
|
Shape[] |
orientations()
Returns the Shape s for this ShapeType that are distinct. |
Shape |
right()
|
Shape[] |
searchOrientations()
|
Shape |
starter()
Returns the shape used to start a new round with this shape type |
int |
starterX()
Returns the X offset of a shape of this type when starting |
int |
starterY()
Returns the Y offset of a shape of this type when starting |
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ShapeType I
public static final ShapeType L
public static final ShapeType O
public static final ShapeType Z
public static final ShapeType T
public static final ShapeType J
public static final ShapeType S
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic Shape[] orientations()
Shape
s for this ShapeType
that are distinct.
public Shape[] searchOrientations()
public Shape starter()
public int starterY()
public int starterX()
public Block inactive()
public Shape up()
public Shape right()
public Shape left()
public Shape down()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |