cz.cuni.amis.pogamut.defcon.consts
Enum GameOption

Package class diagram package GameOption
java.lang.Object
  extended by java.lang.Enum<GameOption>
      extended by cz.cuni.amis.pogamut.defcon.consts.GameOption
All Implemented Interfaces:
Serializable, Comparable<GameOption>

public enum GameOption
extends Enum<GameOption>


Enum Constant Summary
ADVERTISE_ON_INTERNET
          Game will be advertised on the Metaserver if enabled.
ADVERTISE_ON_LAN
          Game will be advertised in the local network if enabled.
CITIES_PER_TERRITORY
           
CITY_POPULATIONS
          Distribution of population in cities (Default, Equalised, Random, TotallyRandom)
GAME_MODE
          Default, Office Mode, Speed Defcon, Diplomacy, BigWorld, Tournament, Custom
GAME_SPEED
          Slowest Requested, Real Time, 5x Real Time, 10x Real Time, 20x Real Time
MAX_SPECTATORS
           
MAX_TEAMS
          Maximum number of participating players.
PERMIT_DEFECTION
          No, Yes
POPULATION_PER_TERRITORY
          Maximum number of participating players.
RADAR_SHARING
          AlwaysOff, Alliance, Selective, AlwaysOn
RANDOM_TERRITORIES
          Disable selection of territories (No, Yes)
SCORE_MODE
          Default, Survivor, Genocide
SERVER_NAME
          Name of the game server.
SERVER_PASSWORD
           
SLOWEST_SPEED
          Pause, Real Time, 5x Real Time, 10x Real Time, 20x Real Time
SPECTATOR_CHAT_CHANNEL
          Private, Public
TEAM_SWITCHING
          If enabled, teams can be switched during the game (Disabled, Enabled)
TERRITORIES_PER_TEAM
           
VARIABLE_UNIT_COUNT
          Variable units allows the placement of units by credit (Disabled, Enabled).
VICTORY_TIMER
          Duration of victory timer in minutes.
VICTORY_TRIGGER
          Percent of remaining nukes before victory timer starts.
WORLD_SCALE
          Scale of the worldmap, in percent.
 
Field Summary
 int def
           
 int max
           
 int min
           
 String name
           
 
Method Summary
static GameOption getEnum(String option)
           
 String getName()
           
static GameOption valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GameOption[] 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

SERVER_NAME

public static final GameOption SERVER_NAME
Name of the game server.


ADVERTISE_ON_INTERNET

public static final GameOption ADVERTISE_ON_INTERNET
Game will be advertised on the Metaserver if enabled. (Disabled, Enabled).


ADVERTISE_ON_LAN

public static final GameOption ADVERTISE_ON_LAN
Game will be advertised in the local network if enabled. (Disabled, Enabled)


GAME_MODE

public static final GameOption GAME_MODE
Default, Office Mode, Speed Defcon, Diplomacy, BigWorld, Tournament, Custom


MAX_TEAMS

public static final GameOption MAX_TEAMS
Maximum number of participating players.


TERRITORIES_PER_TEAM

public static final GameOption TERRITORIES_PER_TEAM

CITIES_PER_TERRITORY

public static final GameOption CITIES_PER_TERRITORY

POPULATION_PER_TERRITORY

public static final GameOption POPULATION_PER_TERRITORY
Maximum number of participating players.


CITY_POPULATIONS

public static final GameOption CITY_POPULATIONS
Distribution of population in cities (Default, Equalised, Random, TotallyRandom)


RANDOM_TERRITORIES

public static final GameOption RANDOM_TERRITORIES
Disable selection of territories (No, Yes)


PERMIT_DEFECTION

public static final GameOption PERMIT_DEFECTION
No, Yes


RADAR_SHARING

public static final GameOption RADAR_SHARING
AlwaysOff, Alliance, Selective, AlwaysOn


GAME_SPEED

public static final GameOption GAME_SPEED
Slowest Requested, Real Time, 5x Real Time, 10x Real Time, 20x Real Time


SLOWEST_SPEED

public static final GameOption SLOWEST_SPEED
Pause, Real Time, 5x Real Time, 10x Real Time, 20x Real Time


SCORE_MODE

public static final GameOption SCORE_MODE
Default, Survivor, Genocide


VICTORY_TRIGGER

public static final GameOption VICTORY_TRIGGER
Percent of remaining nukes before victory timer starts.


VICTORY_TIMER

public static final GameOption VICTORY_TIMER
Duration of victory timer in minutes.


VARIABLE_UNIT_COUNT

public static final GameOption VARIABLE_UNIT_COUNT
Variable units allows the placement of units by credit (Disabled, Enabled).


WORLD_SCALE

public static final GameOption WORLD_SCALE
Scale of the worldmap, in percent.


MAX_SPECTATORS

public static final GameOption MAX_SPECTATORS

SPECTATOR_CHAT_CHANNEL

public static final GameOption SPECTATOR_CHAT_CHANNEL
Private, Public


TEAM_SWITCHING

public static final GameOption TEAM_SWITCHING
If enabled, teams can be switched during the game (Disabled, Enabled)


SERVER_PASSWORD

public static final GameOption SERVER_PASSWORD
Field Detail

name

public final String name

min

public final int min

max

public final int max

def

public final int def
Method Detail

values

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

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

valueOf

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

getEnum

public static GameOption getEnum(String option)

getName

public String getName()


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