org.wicketstuff.eidogo
Enum Eidogo.Mode

java.lang.Object
  extended by java.lang.Enum<Eidogo.Mode>
      extended by org.wicketstuff.eidogo.Eidogo.Mode
All Implemented Interfaces:
Serializable, Comparable<Eidogo.Mode>
Enclosing class:
Eidogo

public static enum Eidogo.Mode
extends Enum<Eidogo.Mode>

Mode of the player.

Author:
Isammoc

Enum Constant Summary
ADD_BLACK
          Add black stone mode.
ADD_WHITE
          Add white stone mode.
CIRCLE
          Circle mode.
LABEL
          Label mode.
NUMBER
          Number mode.
PLAY
          Play mode.
REGION
          Region mode.
SCORE
          Score mode.
SQUARE
          Square mode.
TRIANGLE
          Triangle mode.
 
Method Summary
 String toString()
          Used to transform into JSon value.
static Eidogo.Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Eidogo.Mode[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PLAY

public static final Eidogo.Mode PLAY
Play mode. Allows user to play the game.


ADD_BLACK

public static final Eidogo.Mode ADD_BLACK
Add black stone mode. Allows user to add as many black stones as (s)he wants.


ADD_WHITE

public static final Eidogo.Mode ADD_WHITE
Add white stone mode. Allows user to add as many white stones as (s)he wants.


REGION

public static final Eidogo.Mode REGION
Region mode. Allows user to mark a region.


TRIANGLE

public static final Eidogo.Mode TRIANGLE
Triangle mode. Allows user to mark stone and/or intersection with a triangle.


SQUARE

public static final Eidogo.Mode SQUARE
Square mode. Allows user to mark stone and/or intersection with a square.


CIRCLE

public static final Eidogo.Mode CIRCLE
Circle mode. Allows user to mark stone and/or intersection with a circle.


LABEL

public static final Eidogo.Mode LABEL
Label mode. Allows user to mark stone and/or intersection with a letter.


NUMBER

public static final Eidogo.Mode NUMBER
Number mode. Allows user to mark stone and/or intersection with a number.


SCORE

public static final Eidogo.Mode SCORE
Score mode. Allows user to view score.

Method Detail

values

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

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

valueOf

public static Eidogo.Mode 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

toString

public String toString()
Used to transform into JSon value.

Overrides:
toString in class Enum<Eidogo.Mode>
Returns:
the JSon value


Copyright © 2011. All Rights Reserved.