|
||||||||||
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.UT2004Ini
public class UT2004Ini
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 !!!
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 |
---|
public static final String Section_URL
public static final String Section_Engine_GameReplicationInfo
public static final String Key_Port
public static final String Key_ServerName
public static final String Key_ShortName
Constructor Detail |
---|
public UT2004Ini()
public UT2004Ini(File source)
source
- public UT2004Ini(UT2004Ini ut2004Ini)
Method Detail |
---|
public String getServerName()
public String getServerShortName()
public void setServerName(String serverName, String shortName)
serverName
- shortName
- public int getPort()
public void setPort(int port)
port
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |