|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.utils.IniFile
cz.cuni.amis.pogamut.ut2004.tournament.GameBots2004Ini
public class GameBots2004Ini
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.
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 |
---|
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
Constructor Detail |
---|
public GameBots2004Ini()
public GameBots2004Ini(File source)
source
- public GameBots2004Ini(GameBots2004Ini gb2004Ini)
Method Detail |
---|
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |