javoids
Enum Shapes.Shape

java.lang.Object
  extended by java.lang.Enum<Shapes.Shape>
      extended by javoids.Shapes.Shape
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Shapes.Shape>
Enclosing class:
Shapes

public static enum Shapes.Shape
extends java.lang.Enum<Shapes.Shape>

An enum of available shapes.

Author:
mallette

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

NO_SHAPE

public static final Shapes.Shape NO_SHAPE
a place holder to represent that the item has no shape


POINT

public static final Shapes.Shape POINT
a single point


CIRCLE

public static final Shapes.Shape CIRCLE
a circle


TRIANGLE30

public static final Shapes.Shape TRIANGLE30
an isosceles triangle with a 30 degree angle at the top


SQUARE

public static final Shapes.Shape SQUARE
a square (4 sided shape with equal side lengths)


PENTAGON

public static final Shapes.Shape PENTAGON
a pentagon (5 sided shape with equal side lengths)


HEXAGON

public static final Shapes.Shape HEXAGON
a hexagon (6 sided shape with equal side lengths)


STAR

public static final Shapes.Shape STAR
a 6 pointed star


LANDER

public static final Shapes.Shape LANDER
a lunar lander like shape (kind of looks like a bug with the current colors)


JAVOID

public static final Shapes.Shape JAVOID
a Javoid (kind of like an asteroid, but more extensible lol)


TRIANGLE45

public static final Shapes.Shape TRIANGLE45
an isosceles triangle with a 45 degree angle at the top


LINE_2

public static final Shapes.Shape LINE_2
two lines slanted at 45 degree angles in front of a shielded sprite


LINE_4

public static final Shapes.Shape LINE_4
four lines slanted at 45 degree angles in front and behind a shielded sprite


SPIKES

public static final Shapes.Shape SPIKES
siz lines like an asterisk

Method Detail

values

public static final Shapes.Shape[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Shapes.Shape c : Shapes.Shape.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Shapes.Shape valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name