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

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

public enum HSBotState
extends Enum<HSBotState>


Enum Constant Summary
RUNNER
          Bot that should be "hiding" from SEEKER.
RUNNER_CAPTURED
          RUNNER that has been spotted and tagged in SAFE area before it managed to escape.
RUNNER_FAULED
          RUNNER that was found within restricted area whenever the SEEKER has been spawned.
RUNNER_SAFE
          RUNNER that managed to escape by getting to the safe area before the SEEKER spot him/catches him.
RUNNER_SPOTTED
          RUNNER that has been already spotted by the seeker.
RUNNER_SURVIVED
          RUNNER has survived this round (that has just ended).
SEEKER
          Bot that is "IT", have to seek RUNNERs out.
 
Method Summary
static HSBotState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HSBotState[] 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

public static final HSBotState SEEKER
Bot that is "IT", have to seek RUNNERs out.


RUNNER

public static final HSBotState RUNNER
Bot that should be "hiding" from SEEKER.


RUNNER_SPOTTED

public static final HSBotState RUNNER_SPOTTED
RUNNER that has been already spotted by the seeker.


RUNNER_SAFE

public static final HSBotState RUNNER_SAFE
RUNNER that managed to escape by getting to the safe area before the SEEKER spot him/catches him.


RUNNER_CAPTURED

public static final HSBotState RUNNER_CAPTURED
RUNNER that has been spotted and tagged in SAFE area before it managed to escape.


RUNNER_FAULED

public static final HSBotState RUNNER_FAULED
RUNNER that was found within restricted area whenever the SEEKER has been spawned.


RUNNER_SURVIVED

public static final HSBotState RUNNER_SURVIVED
RUNNER has survived this round (that has just ended).

Method Detail

values

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

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

valueOf

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


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