public class GameBots2004Ini
extends cz.cuni.amis.utils.IniFile
IniFile that loads its defaults from classpath:/cz/cuni/amis/pogamut/ut2004/tournament/deathmatch/GameBots2004-Deathmatch.ini
if not specified.
Additionally it provides definitions of common constants that applies to the GameBots2004.ini as well as handy shortcuts for setting various interesting properties such as time limit or frag limit, etc.
| Modifier and Type | Field and Description |
|---|---|
static String |
Key_CTF_ScoreLimit |
static String |
Key_CTF_TimeLimit |
static String |
Key_DM_FragLimit |
static String |
Key_DM_TimeLimit |
static String |
Section_Engine_GameInfo |
static String |
Section_GameBots2004_BotConnection |
static String |
Section_GameBots2004_BotCTFGame |
static String |
Section_GameBots2004_BotDeathMatch |
static String |
Section_GameBots2004_BotDoubleDomination |
static String |
Section_GameBots2004_BotScenario |
static String |
Section_GameBots2004_BotTeamGame |
static String |
Section_GameBots2004_ControlConnection |
static String |
Section_GameBots2004_ControlServer |
static String |
Section_GameBots2004_GBHUD |
static String |
Section_GameBots2004_GBScenarioMutator |
static String |
Section_GameBots2004_RemoteBot |
static String |
Section_UnrealGame_DeathMatch |
static String |
Section_UnrealGame_UnrealMPGameInfo |
| Constructor and Description |
|---|
GameBots2004Ini()
Constructs Ini file with defaults taken from 'classpath:/cz/cuni/amis/pogamut/ut2004/tournament/deathmatch/GameBots2004-Deathmatch.ini'.
|
GameBots2004Ini(File source)
Constructs GameBots2004Ini with defaults taken 'source' (file must exists!).
|
GameBots2004Ini(GameBots2004Ini gb2004Ini) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCTFScoreLimit()
Gets frag limit of the capture-the-flag game (or null if not specified).
|
Integer |
getCTFTimeLimit()
Returns time limit of the capture-the-flag game in minutes (or null if not specified).
|
Integer |
getDMFragLimit()
Gets frag limit of the death match game (or null if not specified).
|
Integer |
getDMTimeLimit()
Returns time limit of the death match game in minutes (or null if not specified).
|
void |
setCTFScoreLimit(int scoreLimit)
Sets score limit of the capture-the-flag game.
|
void |
setCTFTimeLimit(int timeLimitInMin)
Sets time limit of the capture-the-flag game in minutes.
|
void |
setDMFragLimit(int fragLimit)
Sets frag limit of the death match game.
|
void |
setDMTimeLimit(int timeLimitInMin)
Sets time limit of the death match game in minutes.
|
public static final String Section_GameBots2004_BotConnection
public static final String Section_GameBots2004_RemoteBot
public static final String Section_GameBots2004_GBHUD
public static final String Section_GameBots2004_ControlConnection
public static final String Section_GameBots2004_ControlServer
public static final String Section_GameBots2004_BotScenario
public static final String Section_GameBots2004_BotDeathMatch
public static final String Section_GameBots2004_BotTeamGame
public static final String Section_GameBots2004_BotCTFGame
public static final String Section_GameBots2004_BotDoubleDomination
public static final String Section_Engine_GameInfo
public static final String Section_UnrealGame_UnrealMPGameInfo
public static final String Section_UnrealGame_DeathMatch
public static final String Section_GameBots2004_GBScenarioMutator
public static final String Key_DM_TimeLimit
public static final String Key_DM_FragLimit
public static final String Key_CTF_TimeLimit
public static final String Key_CTF_ScoreLimit
public GameBots2004Ini()
public GameBots2004Ini(File source)
source - public GameBots2004Ini(GameBots2004Ini gb2004Ini)
public Integer getDMTimeLimit()
public void setDMTimeLimit(int timeLimitInMin)
timeLimitInMin - public Integer getDMFragLimit()
public void setDMFragLimit(int fragLimit)
fragLimitInSecs - public Integer getCTFTimeLimit()
public void setCTFTimeLimit(int timeLimitInMin)
timeLimitInMin - public Integer getCTFScoreLimit()
public void setCTFScoreLimit(int scoreLimit)
fragLimitInSecs - Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.