components
Enum GameObjectClassification

java.lang.Object
  extended by java.lang.Enum<GameObjectClassification>
      extended by components.GameObjectClassification
All Implemented Interfaces:
Serializable, Comparable<GameObjectClassification>

public enum GameObjectClassification
extends Enum<GameObjectClassification>

GameObjectClassification is a tag that describes a GameObject This is the enum of GameObjectType that exists, it is useful for new gizmo construction.

Specification Fields

Enum Constant Summary
ABSORBER
           
BALL
           
CIRCLEBUMPER
           
FLIPPER
           
LEFTFLIPPER
           
RIGHTFLIPPER
           
SELECTED
           
SQUAREBUMPER
           
TRIANGLEBUMPER
           
WALL
           
 
Method Summary
 String getXMLName()
          Returns the xmlname for this object
 GameObject newInstance(Map<String,String> p, GameSpace g)
          Returns a GameObject with properties p that match this enum's value
static GameObjectClassification valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GameObjectClassification[] 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

BALL

public static final GameObjectClassification BALL

CIRCLEBUMPER

public static final GameObjectClassification CIRCLEBUMPER

SQUAREBUMPER

public static final GameObjectClassification SQUAREBUMPER

TRIANGLEBUMPER

public static final GameObjectClassification TRIANGLEBUMPER

FLIPPER

public static final GameObjectClassification FLIPPER

ABSORBER

public static final GameObjectClassification ABSORBER

LEFTFLIPPER

public static final GameObjectClassification LEFTFLIPPER

RIGHTFLIPPER

public static final GameObjectClassification RIGHTFLIPPER

WALL

public static final GameObjectClassification WALL

SELECTED

public static final GameObjectClassification SELECTED
Method Detail

values

public static final GameObjectClassification[] 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(GameObjectClassification c : GameObjectClassification.values())
        System.out.println(c);

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

valueOf

public static GameObjectClassification valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

newInstance

public GameObject newInstance(Map<String,String> p,
                              GameSpace g)
Returns a GameObject with properties p that match this enum's value

Returns:
a new gameobject
Requires:
p contains the required properties for p, and that this has a valid factory

getXMLName

public String getXMLName()
Returns the xmlname for this object

Returns:
string that is valid for the xml schema