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

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

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

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

Author:
Jimmy

Enum Constant Summary
BotCTFGame
          Capture the Flag!
BotDeathMatch
          Classic death-match: Kill or get killed.
BotTeamGame
          Team death-match: Strategic team killing.
BotVehicleCTFGame
          Capture the Flag!
Unknown
          This type of game is not supported.
 
Method Summary
static Game.GameType getType(String type)
          Tedious work this is..
static Game.GameType valueOf(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.


BotVehicleCTFGame

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


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(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

getType

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


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