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

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

public class UT2004Ini
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. DOES NOT WORK !!! UT2004.ini file contains multi-map of keys-values !!!

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_Port
           
static String Key_ServerName
           
static String Key_ShortName
           
static String Section_Engine_GameReplicationInfo
           
static String Section_URL
           
 
Fields inherited from class cz.cuni.amis.utils.IniFile
SECTION_ENTRY_INDEX_COMPARATOR, SECTION_ENTRY_KEY_COMPARATOR
 
Constructor Summary
UT2004Ini()
          Constructs Ini file with defaults taken from 'classpath:/cz/cuni/amis/pogamut/ut2004/tournament/deathmatch/GameBots2004-Deathmatch.ini'.
UT2004Ini(File source)
          Constructs GameBots2004Ini with defaults taken 'source' (file must exists!).
UT2004Ini(UT2004Ini ut2004Ini)
           
 
Method Summary
 int getPort()
          Returns port where UT2004 dedicated server will be listening at / announcing itself.
 String getServerName()
          Returns "server name", string that will appear when advertising the server via LAN.
 String getServerShortName()
          Returns "short server name", dunno when is that used.
 void setPort(int port)
          Sets port where UT2004 dedicated server will be listening at / announcing itself.
 void setServerName(String serverName, String shortName)
          Sets (short) server name for the server that will get advertised via LAN.
 
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_URL

public static final String Section_URL
See Also:
Constant Field Values

Section_Engine_GameReplicationInfo

public static final String Section_Engine_GameReplicationInfo
See Also:
Constant Field Values

Key_Port

public static final String Key_Port
See Also:
Constant Field Values

Key_ServerName

public static final String Key_ServerName
See Also:
Constant Field Values

Key_ShortName

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

UT2004Ini

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


UT2004Ini

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

Parameters:
source -

UT2004Ini

public UT2004Ini(UT2004Ini ut2004Ini)
Method Detail

getServerName

public String getServerName()
Returns "server name", string that will appear when advertising the server via LAN.

Returns:

getServerShortName

public String getServerShortName()
Returns "short server name", dunno when is that used.

Returns:

setServerName

public void setServerName(String serverName,
                          String shortName)
Sets (short) server name for the server that will get advertised via LAN.

Parameters:
serverName -
shortName -

getPort

public int getPort()
Returns port where UT2004 dedicated server will be listening at / announcing itself.

Returns:

setPort

public void setPort(int port)
Sets port where UT2004 dedicated server will be listening at / announcing itself.

Parameters:
port -


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