org.frogx.service.api
Enum MUGMatch.Status

java.lang.Object
  extended by java.lang.Enum<MUGMatch.Status>
      extended by org.frogx.service.api.MUGMatch.Status
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MUGMatch.Status>
Enclosing interface:
MUGMatch

public static enum MUGMatch.Status
extends java.lang.Enum<MUGMatch.Status>

The Status of a MUGMatch is part of the game state within a MUGRoom and describes if the game is running, paused or can be configured. For example only in matches with an active status moves are permitted, newly created rooms have to be configured before a MUGOccupant is allowed to join the room,...

Author:
Günther Nieß

Enum Constant Summary
active
          In the room a match is played by the occupants.
created
          If the room with this match was currently created and isn't configured yet.
inactive
          The match can be configured, not yet started.
paused
          The match is paused.
 
Method Summary
static MUGMatch.Status valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MUGMatch.Status[] 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

created

public static final MUGMatch.Status created
If the room with this match was currently created and isn't configured yet.


active

public static final MUGMatch.Status active
In the room a match is played by the occupants.


paused

public static final MUGMatch.Status paused
The match is paused.


inactive

public static final MUGMatch.Status inactive
The match can be configured, not yet started.

Method Detail

values

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

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

valueOf

public static MUGMatch.Status 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


Copyright © 2009. All Rights Reserved.