|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.ut2004.tournament.match.UT2004MatchConfig cz.cuni.amis.pogamut.ut2004.tournament.deathmatch.UT2004DeathMatchConfig
public class UT2004DeathMatchConfig
Field Summary | |
---|---|
protected int |
fragLimit
|
protected boolean |
humanLikeLog
|
protected int |
timeLimitInMin
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.tournament.match.UT2004MatchConfig |
---|
bots, gb2004Ini, matchId, nativeBots, outputDirectory, uccConf, validationBuffer, validationError |
Constructor Summary | |
---|---|
UT2004DeathMatchConfig()
|
|
UT2004DeathMatchConfig(UT2004DeathMatchConfig orig)
Copy-constructor. |
Method Summary | |
---|---|
UT2004DeathMatchConfig |
addBot(UT2004BotConfig... bots)
Adds NEW bot configuration into the object, checks whether there is no BotId clash (if so, throws an exception). |
UT2004DeathMatchConfig |
addNativeBot(UT2004NativeBotConfig... bots)
Adds NEW native bot configuration into the object, checks whether there is no BotId clash (if so, throws an exception). |
UT2004DeathMatchConfig |
clearBots()
|
UT2004DeathMatchConfig |
clearNativeBots()
|
int |
getFragLimit()
Returns frag limit (score limit) of the match. |
int |
getTimeLimit()
Returns time limit of the match in seconds. |
UT2004MatchConfig |
setBot(UT2004BotConfig... bots)
Sets bot configuration into the object, does not checks whether there is BotId clash. |
UT2004DeathMatchConfig |
setBots(Map<cz.cuni.amis.utils.token.IToken,UT2004BotConfig> bots)
|
UT2004DeathMatchConfig |
setFragLimit(int fragLimit)
Alters GB2004Ini as well. |
UT2004DeathMatchConfig |
setGb2004Ini(GameBots2004Ini gb2004Ini)
Values from current Frag/Time limit are automatically copied into the ini. |
UT2004DeathMatchConfig |
setHumanLikeLogEnabled(boolean humanLikeLog)
|
UT2004DeathMatchConfig |
setNativeBot(UT2004NativeBotConfig... bots)
Sets native bot configuration into the object, does not checks whether there is BotId clash. |
UT2004DeathMatchConfig |
setNativeBots(Map<cz.cuni.amis.utils.token.IToken,UT2004NativeBotConfig> nativeBots)
|
UT2004DeathMatchConfig |
setOutputDirectory(File outputDirectory)
|
UT2004DeathMatchConfig |
setTimeLimit(int timeLimitInMinutes)
Alters GB2004Ini as well. |
UT2004DeathMatchConfig |
setUccConf(UCCWrapperConf uccConf)
|
protected void |
validateInner()
Performs validation of the match configuration: Checks whether the match id is non-null. |
Methods inherited from class cz.cuni.amis.pogamut.ut2004.tournament.match.UT2004MatchConfig |
---|
equals, getAllBotIds, getBots, getGb2004Ini, getMatchId, getNativeBots, getOutputDirectory, getUccConf, hashCode, isHumanLikeLogEnabled, isNativeBot, setMatchId, setMatchId, validate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int fragLimit
protected int timeLimitInMin
protected boolean humanLikeLog
Constructor Detail |
---|
public UT2004DeathMatchConfig()
public UT2004DeathMatchConfig(UT2004DeathMatchConfig orig)
orig
- Method Detail |
---|
public int getFragLimit()
public int getTimeLimit()
public UT2004DeathMatchConfig clearBots()
clearBots
in class UT2004MatchConfig
public UT2004DeathMatchConfig clearNativeBots()
clearNativeBots
in class UT2004MatchConfig
public UT2004DeathMatchConfig setOutputDirectory(File outputDirectory)
setOutputDirectory
in class UT2004MatchConfig
public UT2004DeathMatchConfig setFragLimit(int fragLimit)
fragLimit
-
public UT2004DeathMatchConfig setTimeLimit(int timeLimitInMinutes)
timeLimitInMinutes
-
public UT2004DeathMatchConfig setUccConf(UCCWrapperConf uccConf)
setUccConf
in class UT2004MatchConfig
public UT2004DeathMatchConfig setGb2004Ini(GameBots2004Ini gb2004Ini)
setGb2004Ini
in class UT2004MatchConfig
public UT2004DeathMatchConfig setBots(Map<cz.cuni.amis.utils.token.IToken,UT2004BotConfig> bots)
setBots
in class UT2004MatchConfig
public UT2004DeathMatchConfig setNativeBots(Map<cz.cuni.amis.utils.token.IToken,UT2004NativeBotConfig> nativeBots)
setNativeBots
in class UT2004MatchConfig
public UT2004DeathMatchConfig addBot(UT2004BotConfig... bots)
UT2004MatchConfig
addBot
in class UT2004MatchConfig
public UT2004MatchConfig setBot(UT2004BotConfig... bots)
UT2004MatchConfig
setBot
in class UT2004MatchConfig
public UT2004DeathMatchConfig addNativeBot(UT2004NativeBotConfig... bots)
UT2004MatchConfig
addNativeBot
in class UT2004MatchConfig
public UT2004DeathMatchConfig setNativeBot(UT2004NativeBotConfig... bots)
UT2004MatchConfig
setNativeBot
in class UT2004MatchConfig
public UT2004DeathMatchConfig setHumanLikeLogEnabled(boolean humanLikeLog)
setHumanLikeLogEnabled
in class UT2004MatchConfig
protected void validateInner()
UT2004MatchConfig
UccWrapper
is not null and its directory exists.GameBots2004Ini
is not null.Override to provide/add custom validation (might require copy-paste of the code from this method).
validateInner
in class UT2004MatchConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |