net.jetrix.config
Enum Special

java.lang.Object
  extended by java.lang.Enum<Special>
      extended by net.jetrix.config.Special
All Implemented Interfaces:
Serializable, Comparable<Special>

public enum Special
extends Enum<Special>

Special blocks enumeration.

Since:
0.2
Version:
$Revision: 545 $, $Date: 2005-01-05 18:16:04 +0100 (mer., 05 janv. 2005) $
Author:
Emmanuel Bourg

Enum Constant Summary
ADDLINE
           
BLOCKBOMB
           
CLEARLINE
           
CLEARSPECIAL
           
GRAVITY
           
NUKEFIELD
           
QUAKEFIELD
           
RANDOMCLEAR
           
SWITCHFIELD
           
 
Method Summary
 String getCode()
           
 String getLetter()
           
 String getName(Locale locale)
           
 int getValue()
           
static Special valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Special[] 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

ADDLINE

public static final Special ADDLINE

CLEARLINE

public static final Special CLEARLINE

NUKEFIELD

public static final Special NUKEFIELD

RANDOMCLEAR

public static final Special RANDOMCLEAR

SWITCHFIELD

public static final Special SWITCHFIELD

CLEARSPECIAL

public static final Special CLEARSPECIAL

GRAVITY

public static final Special GRAVITY

QUAKEFIELD

public static final Special QUAKEFIELD

BLOCKBOMB

public static final Special BLOCKBOMB
Method Detail

values

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

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

valueOf

public static Special 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
NullPointerException - if the argument is null

getValue

public int getValue()

getLetter

public String getLetter()

getCode

public String getCode()

getName

public String getName(Locale locale)


Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.