cz.cuni.amis.pogamut.ut2004.agent.module.sensor
Enum Game.GameType

java.lang.Object
  extended by java.lang.Enum<Game.GameType>
      extended by cz.cuni.amis.pogamut.ut2004.agent.module.sensor.Game.GameType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Game.GameType>
Enclosing class:
Game

public static enum Game.GameType
extends java.lang.Enum<Game.GameType>

Enums for game types that shields you from Unreal's string ids of game types.


Enum Constant Summary
BotBombingRun
          Bombing run.
BotCTFGame
          Capture the Flag! Raid the enemy base, steal their flag.
BotDeathMatch
          Classic death-match: Kill or get killed.
BotDoubleDomination
          Double domination.
BotTeamGame
          Team death-match: Strategic team killing.
Unknown
          This type of game is not supported.
 
Method Summary
static Game.GameType getType(java.lang.String type)
          Tedious work this is..
static Game.GameType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Game.GameType[] 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

BotDeathMatch

public static final Game.GameType BotDeathMatch
Classic death-match: Kill or get killed. You're on you own!


BotTeamGame

public static final Game.GameType BotTeamGame
Team death-match: Strategic team killing. Shoot opponents only.


BotCTFGame

public static final Game.GameType BotCTFGame
Capture the Flag! Raid the enemy base, steal their flag.


BotBombingRun

public static final Game.GameType BotBombingRun
Bombing run. Play soccer in UT2004, either kick ball or shoot.


BotDoubleDomination

public static final Game.GameType BotDoubleDomination
Double domination. Take control of specific spots on the map.


Unknown

public static final Game.GameType Unknown
This type of game is not supported.

Method Detail

values

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

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

valueOf

public static Game.GameType 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

getType

public static Game.GameType getType(java.lang.String type)
Tedious work this is.. Let's do it once, shall we?

Parameters:
type - Name of the type of the game type.
Returns:
Game type associated with given name.