|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Shapes.Shape>
javoids.Shapes.Shape
public static enum Shapes.Shape
An enum of available shapes.
Enum Constant Summary | |
---|---|
CIRCLE
a circle |
|
HEXAGON
a hexagon (6 sided shape with equal side lengths) |
|
JAVOID
a Javoid (kind of like an asteroid, but more extensible lol) |
|
LANDER
a lunar lander like shape (kind of looks like a bug with the current colors) |
|
LINE_2
two lines slanted at 45 degree angles in front of a shielded sprite |
|
LINE_4
four lines slanted at 45 degree angles in front and behind a shielded sprite |
|
NO_SHAPE
a place holder to represent that the item has no shape |
|
PENTAGON
a pentagon (5 sided shape with equal side lengths) |
|
POINT
a single point |
|
SPIKES
siz lines like an asterisk |
|
SQUARE
a square (4 sided shape with equal side lengths) |
|
STAR
a 6 pointed star |
|
TRIANGLE30
an isosceles triangle with a 30 degree angle at the top |
|
TRIANGLE45
an isosceles triangle with a 45 degree angle at the top |
Method Summary | |
---|---|
static Shapes.Shape |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Shapes.Shape[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Shapes.Shape NO_SHAPE
public static final Shapes.Shape POINT
public static final Shapes.Shape CIRCLE
public static final Shapes.Shape TRIANGLE30
public static final Shapes.Shape SQUARE
public static final Shapes.Shape PENTAGON
public static final Shapes.Shape HEXAGON
public static final Shapes.Shape STAR
public static final Shapes.Shape LANDER
public static final Shapes.Shape JAVOID
public static final Shapes.Shape TRIANGLE45
public static final Shapes.Shape LINE_2
public static final Shapes.Shape LINE_4
public static final Shapes.Shape SPIKES
Method Detail |
---|
public static final Shapes.Shape[] values()
for(Shapes.Shape c : Shapes.Shape.values()) System.out.println(c);
public static Shapes.Shape valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |