cz.cuni.amis.pogamut.ut2004.tournament
Class GameBots2004Ini

Package class diagram package GameBots2004Ini
java.lang.Object
  extended by cz.cuni.amis.utils.IniFile
      extended by cz.cuni.amis.pogamut.ut2004.tournament.GameBots2004Ini

public class GameBots2004Ini
extends cz.cuni.amis.utils.IniFile

Ordinary 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.

Author:
Jimmy

Nested Class Summary
 
Nested classes/interfaces inherited from class cz.cuni.amis.utils.IniFile
cz.cuni.amis.utils.IniFile.Section, cz.cuni.amis.utils.IniFile.SectionEntry, cz.cuni.amis.utils.IniFile.SectionEntryComment, cz.cuni.amis.utils.IniFile.SectionEntryKeyValue
 
Field Summary
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
           
 
Fields inherited from class cz.cuni.amis.utils.IniFile
SECTION_ENTRY_INDEX_COMPARATOR, SECTION_ENTRY_KEY_COMPARATOR
 
Constructor Summary
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)
           
 
Method Summary
 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.
 
Methods inherited from class cz.cuni.amis.utils.IniFile
addIniFile, addSection, addSection, backup, copySection, get, getSection, getSectionNames, getSections, hasCommentKey, hasKey, hasSection, isComment, load, load, mergeIntoIniFile, output, output, output, output, set, set, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Section_GameBots2004_BotConnection

public static final String Section_GameBots2004_BotConnection
See Also:
Constant Field Values

Section_GameBots2004_RemoteBot

public static final String Section_GameBots2004_RemoteBot
See Also:
Constant Field Values

Section_GameBots2004_GBHUD

public static final String Section_GameBots2004_GBHUD
See Also:
Constant Field Values

Section_GameBots2004_ControlConnection

public static final String Section_GameBots2004_ControlConnection
See Also:
Constant Field Values

Section_GameBots2004_ControlServer

public static final String Section_GameBots2004_ControlServer
See Also:
Constant Field Values

Section_GameBots2004_BotScenario

public static final String Section_GameBots2004_BotScenario
See Also:
Constant Field Values

Section_GameBots2004_BotDeathMatch

public static final String Section_GameBots2004_BotDeathMatch
See Also:
Constant Field Values

Section_GameBots2004_BotTeamGame

public static final String Section_GameBots2004_BotTeamGame
See Also:
Constant Field Values

Section_GameBots2004_BotCTFGame

public static final String Section_GameBots2004_BotCTFGame
See Also:
Constant Field Values

Section_GameBots2004_BotDoubleDomination

public static final String Section_GameBots2004_BotDoubleDomination
See Also:
Constant Field Values

Section_Engine_GameInfo

public static final String Section_Engine_GameInfo
See Also:
Constant Field Values

Section_UnrealGame_UnrealMPGameInfo

public static final String Section_UnrealGame_UnrealMPGameInfo
See Also:
Constant Field Values

Section_UnrealGame_DeathMatch

public static final String Section_UnrealGame_DeathMatch
See Also:
Constant Field Values

Section_GameBots2004_GBScenarioMutator

public static final String Section_GameBots2004_GBScenarioMutator
See Also:
Constant Field Values

Key_DM_TimeLimit

public static final String Key_DM_TimeLimit
See Also:
Constant Field Values

Key_DM_FragLimit

public static final String Key_DM_FragLimit
See Also:
Constant Field Values

Key_CTF_TimeLimit

public static final String Key_CTF_TimeLimit
See Also:
Constant Field Values

Key_CTF_ScoreLimit

public static final String Key_CTF_ScoreLimit
See Also:
Constant Field Values
Constructor Detail

GameBots2004Ini

public GameBots2004Ini()
Constructs Ini file with defaults taken from 'classpath:/cz/cuni/amis/pogamut/ut2004/tournament/deathmatch/GameBots2004-Deathmatch.ini'.


GameBots2004Ini

public GameBots2004Ini(File source)
Constructs GameBots2004Ini with defaults taken 'source' (file must exists!).

Parameters:
source -

GameBots2004Ini

public GameBots2004Ini(GameBots2004Ini gb2004Ini)
Method Detail

getDMTimeLimit

public Integer getDMTimeLimit()
Returns time limit of the death match game in minutes (or null if not specified).

Returns:

setDMTimeLimit

public void setDMTimeLimit(int timeLimitInMin)
Sets time limit of the death match game in minutes.

Parameters:
timeLimitInMin -

getDMFragLimit

public Integer getDMFragLimit()
Gets frag limit of the death match game (or null if not specified).

Returns:

setDMFragLimit

public void setDMFragLimit(int fragLimit)
Sets frag limit of the death match game.

Parameters:
fragLimitInSecs -

getCTFTimeLimit

public Integer getCTFTimeLimit()
Returns time limit of the capture-the-flag game in minutes (or null if not specified).

Returns:

setCTFTimeLimit

public void setCTFTimeLimit(int timeLimitInMin)
Sets time limit of the capture-the-flag game in minutes.

Parameters:
timeLimitInMin -

getCTFScoreLimit

public Integer getCTFScoreLimit()
Gets frag limit of the capture-the-flag game (or null if not specified).

Returns:

setCTFScoreLimit

public void setCTFScoreLimit(int scoreLimit)
Sets score limit of the capture-the-flag game.

Parameters:
fragLimitInSecs -


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