cz.cuni.amis.pogamut.ut2004.hideandseek.protocol
Enum HSScoreChangeReason
java.lang.Object
java.lang.Enum<HSScoreChangeReason>
cz.cuni.amis.pogamut.ut2004.hideandseek.protocol.HSScoreChangeReason
- All Implemented Interfaces:
- Serializable, Comparable<HSScoreChangeReason>
public enum HSScoreChangeReason
- extends Enum<HSScoreChangeReason>
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
number
public final int number
message
public final String message
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 © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.