net.sf.magicproject.network
Enum StartingOption

java.lang.Object
  extended by java.lang.Enum<StartingOption>
      extended by net.sf.magicproject.network.StartingOption
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StartingOption>

public enum StartingOption
extends java.lang.Enum<StartingOption>

Since:
0.94
Author:
Fabrice Daugan

Enum Constant Summary
client
          The client starts the game.
random
          The player starting the game is determined usin a random value.
server
          The server starts the game.
 
Method Summary
 java.lang.String getLocaleValue()
          Returns the locale value of this element.
static StartingOption valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StartingOption[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

random

public static final StartingOption random
The player starting the game is determined usin a random value.


server

public static final StartingOption server
The server starts the game.


client

public static final StartingOption client
The client starts the game.

Method Detail

values

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

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

valueOf

public static StartingOption 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
java.lang.NullPointerException - if the argument is null

getLocaleValue

public java.lang.String getLocaleValue()
Returns the locale value of this element.

Returns:
the locale value of this element.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.