cz.cuni.amis.pogamut.ut2004.hideandseek.protocol
Enum HSScoreChangeReason

Package class diagram package HSScoreChangeReason
java.lang.Object
  extended by java.lang.Enum<HSScoreChangeReason>
      extended by cz.cuni.amis.pogamut.ut2004.hideandseek.protocol.HSScoreChangeReason
All Implemented Interfaces:
Serializable, Comparable<HSScoreChangeReason>

public enum HSScoreChangeReason
extends Enum<HSScoreChangeReason>


Enum Constant Summary
RUNNER_CAPTURED_BY_SEEKER
           
RUNNER_FAULED_DUE_TO_BEING_IN_RESTRICTED_AREA
           
RUNNER_REACHED_SAFE_AREA
           
RUNNER_SPOTTED_BY_SEEKER
           
RUNNER_SURVIVED_THE_ROUND
           
SEEKER_HAS_CAPTURED_RUNNER
           
SEEKER_LET_RUNNER_ESCAPE
           
SEEKER_SPOTTED_RUNNER
           
 
Field Summary
 String message
           
 int number
           
 
Method Summary
static HSScoreChangeReason getScoreChangeReason(int number)
           
static HSScoreChangeReason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HSScoreChangeReason[] 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

SEEKER_HAS_CAPTURED_RUNNER

public static final HSScoreChangeReason SEEKER_HAS_CAPTURED_RUNNER

RUNNER_REACHED_SAFE_AREA

public static final HSScoreChangeReason RUNNER_REACHED_SAFE_AREA

RUNNER_SURVIVED_THE_ROUND

public static final HSScoreChangeReason RUNNER_SURVIVED_THE_ROUND

RUNNER_FAULED_DUE_TO_BEING_IN_RESTRICTED_AREA

public static final HSScoreChangeReason RUNNER_FAULED_DUE_TO_BEING_IN_RESTRICTED_AREA

RUNNER_SPOTTED_BY_SEEKER

public static final HSScoreChangeReason RUNNER_SPOTTED_BY_SEEKER

SEEKER_SPOTTED_RUNNER

public static final HSScoreChangeReason SEEKER_SPOTTED_RUNNER

SEEKER_LET_RUNNER_ESCAPE

public static final HSScoreChangeReason SEEKER_LET_RUNNER_ESCAPE

RUNNER_CAPTURED_BY_SEEKER

public static final HSScoreChangeReason RUNNER_CAPTURED_BY_SEEKER
Field Detail

number

public final int number

message

public final String message
Method Detail

values

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

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

valueOf

public static HSScoreChangeReason 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

getScoreChangeReason

public static HSScoreChangeReason getScoreChangeReason(int number)


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.