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.
| 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 |
|---|---|
Double |
getControlConnectionUpdateTime()
Returns update time (in seconds) set for ControlConnection.
|
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).
|
Integer |
getTDMFragLimit()
Gets frag limit of the team death match game (or null if not specified).
|
Integer |
getTDMTimeLimit()
Returns time limit of the team death match game in minutes (or null if not specified).
|
Boolean |
getTDMWeaponStay()
Returns TeamDeathMatch weapon stay config.
|
void |
setControlConnectionUpdateTime(double timeInSeconds)
Sets frequency of updates for control connection.
|
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.
|
void |
setTDMFragLimit(int fragLimit)
Sets frag limit of the team death match game.
|
void |
setTDMTimeLimit(int timeLimitInMin)
Sets time limit of the team death match game in minutes.
|
void |
setTDMWeaponStay(boolean weaponStay)
Sets TeamDeathMatch weapon stay.
|
addIniFile, addSection, addSection, backup, copySection, getAll, getOne, getSection, getSectionNames, getSections, hasCommentKey, hasKey, hasSection, isComment, isEqual, isSubset, load, load, mergeIntoIniFile, output, output, output, output, set, set, setpublic 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_TDM_TimeLimit
public static final String Key_TDM_FragLimit
public static final String Key_TDM_WeaponStay
public static final String Key_CTF_TimeLimit
public static final String Key_CTF_ScoreLimit
public static final String Key_CTF_WeaponStay
public static final String Key_CC_UpdateTime
public GameBots2004Ini()
public GameBots2004Ini(File source)
source - public GameBots2004Ini(GameBots2004Ini gb2004Ini)
public Integer getTDMTimeLimit()
public void setTDMTimeLimit(int timeLimitInMin)
timeLimitInMin - public Integer getTDMFragLimit()
public Boolean getTDMWeaponStay()
public void setTDMWeaponStay(boolean weaponStay)
weaponStay - public void setTDMFragLimit(int fragLimit)
fragLimitInSecs - 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 - public Double getControlConnectionUpdateTime()
public void setControlConnectionUpdateTime(double timeInSeconds)
timeInSeconds - Copyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.