net.barkerjr.gameserver.valve
Enum TheShip.GameMode

java.lang.Object
  extended by java.lang.Enum<TheShip.GameMode>
      extended by net.barkerjr.gameserver.valve.TheShip.GameMode
All Implemented Interfaces:
Serializable, Comparable<TheShip.GameMode>
Enclosing class:
TheShip

public static enum TheShip.GameMode
extends Enum<TheShip.GameMode>

The mode of the server

Since:
2009-05-02
Author:
BarkerJr

Enum Constant Summary
DEATHMATCH
          The server is in Deathmatch mode
DUEL
          The server is in Duel mode
ELIMINATION
          The server is in Elimiation mode
HUNT
          The server is in Hunt mode
TEAM_ELIMINATION
          The server is in Team Elimination mode
TEAM_VIP
          The server is in Team VIP mode
 
Method Summary
static TheShip.GameMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TheShip.GameMode[] 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

HUNT

public static final TheShip.GameMode HUNT
The server is in Hunt mode

Since:
2009-05-02

ELIMINATION

public static final TheShip.GameMode ELIMINATION
The server is in Elimiation mode

Since:
2009-05-02

DUEL

public static final TheShip.GameMode DUEL
The server is in Duel mode

Since:
2009-05-02

DEATHMATCH

public static final TheShip.GameMode DEATHMATCH
The server is in Deathmatch mode

Since:
2009-05-02

TEAM_VIP

public static final TheShip.GameMode TEAM_VIP
The server is in Team VIP mode

Since:
2009-05-02

TEAM_ELIMINATION

public static final TheShip.GameMode TEAM_ELIMINATION
The server is in Team Elimination mode

Since:
2009-05-02
Method Detail

values

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

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

valueOf

public static TheShip.GameMode 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