|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<GameOption> cz.cuni.amis.pogamut.defcon.consts.GameOption
public 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 |
---|
public static final GameOption SERVER_NAME
public static final GameOption ADVERTISE_ON_INTERNET
public static final GameOption ADVERTISE_ON_LAN
public static final GameOption GAME_MODE
public static final GameOption MAX_TEAMS
public static final GameOption TERRITORIES_PER_TEAM
public static final GameOption CITIES_PER_TERRITORY
public static final GameOption POPULATION_PER_TERRITORY
public static final GameOption CITY_POPULATIONS
public static final GameOption RANDOM_TERRITORIES
public static final GameOption PERMIT_DEFECTION
public static final GameOption RADAR_SHARING
public static final GameOption GAME_SPEED
public static final GameOption SLOWEST_SPEED
public static final GameOption SCORE_MODE
public static final GameOption VICTORY_TRIGGER
public static final GameOption VICTORY_TIMER
public static final GameOption VARIABLE_UNIT_COUNT
public static final GameOption WORLD_SCALE
public static final GameOption MAX_SPECTATORS
public static final GameOption SPECTATOR_CHAT_CHANNEL
public static final GameOption TEAM_SWITCHING
public static final GameOption SERVER_PASSWORD
Field Detail |
---|
public final String name
public final int min
public final int max
public final int def
Method Detail |
---|
public static GameOption[] values()
for (GameOption c : GameOption.values()) System.out.println(c);
public static GameOption valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static GameOption getEnum(String option)
public String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |