nl.tudelft.goal.unreal.messages
Enum BotParametersKey

Package class diagram package BotParametersKey
java.lang.Object
  extended by java.lang.Enum<BotParametersKey>
      extended by nl.tudelft.goal.unreal.messages.BotParametersKey
All Implemented Interfaces:
Serializable, Comparable<BotParametersKey>, Key

public enum BotParametersKey
extends Enum<BotParametersKey>
implements Key


Enum Constant Summary
LEADTARGET
          Weather or not the bot aims ahead of the target.
LOGLEVEL
          Log level used.
NAME
          Name of the bot
SKILL
          Skill of the bot between 0 (poor) and 7 (good).
SKIN
          Skin used by the bot.
STARTLOCATION
          Start location for the bot.
STARTROTATION
          Start rotation for the bot.
TEAM
          Team of the bot.
 
Method Summary
 String getKey()
           
static BotParametersKey parseKey(String value)
          Returns the enum with the value of the string.
 String toString()
           
static BotParametersKey valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BotParametersKey[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NAME

public static final BotParametersKey NAME
Name of the bot


LEADTARGET

public static final BotParametersKey LEADTARGET
Weather or not the bot aims ahead of the target. Either "true" of "false".


LOGLEVEL

public static final BotParametersKey LOGLEVEL
Log level used. Controls how many messages are displayed on the console. Valid log levels are any from Level.


SKILL

public static final BotParametersKey SKILL
Skill of the bot between 0 (poor) and 7 (good). Controls how well the bot aims.


SKIN

public static final BotParametersKey SKIN
Skin used by the bot. Any one of Skin will do.


TEAM

public static final BotParametersKey TEAM
Team of the bot. Either 0 (red) or 1 (blue).


STARTLOCATION

public static final BotParametersKey STARTLOCATION
Start location for the bot.


STARTROTATION

public static final BotParametersKey STARTROTATION
Start rotation for the bot.

Method Detail

values

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

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

valueOf

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

toString

public String toString()
Overrides:
toString in class Enum<BotParametersKey>
Returns:
a human readable name.

parseKey

public static BotParametersKey parseKey(String value)
                                 throws IllegalArgumentException
Returns the enum with the value of the string. matches.

Parameters:
value -
Returns:
an ParameterKey.
Throws:
IllegalArgumentException - if the provided value was not a valid parameter key.

getKey

public String getKey()
Specified by:
getKey in interface Key


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