public class UT2004TeamDeathMatchConfig extends UT2004MatchConfig
UT2004MatchConfig.BotType| Modifier and Type | Field and Description |
|---|---|
protected int |
scoreLimit |
protected String |
teamBlueId |
protected String |
teamRedId |
protected int |
timeLimitInMin |
bots, gb2004Ini, humans, matchId, nativeBots, outputDirectory, uccConf, ut2004Ini, validationBuffer, validationError| Constructor and Description |
|---|
UT2004TeamDeathMatchConfig() |
UT2004TeamDeathMatchConfig(UT2004TeamDeathMatchConfig orig)
Copy-constructor.
|
| Modifier and Type | Method and Description |
|---|---|
UT2004TeamDeathMatchConfig |
addBot(UT2004BotConfig... bots)
Adds NEW bot configuration into the object, checks whether there is no BotId clash (if so, throws an exception).
|
UT2004TeamDeathMatchConfig |
addNativeBot(UT2004NativeBotConfig... bots)
Adds NEW native bot configuration into the object, checks whether there is no BotId clash (if so, throws an exception).
|
UT2004TeamDeathMatchConfig |
clearBots() |
UT2004TeamDeathMatchConfig |
clearNativeBots() |
int |
getScoreLimit()
Returns score limit of the match.
|
String |
getTeamBlueId() |
String |
getTeamRedId() |
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.
|
UT2004TeamDeathMatchConfig |
setBots(Map<cz.cuni.amis.utils.token.IToken,UT2004BotConfig> bots) |
UT2004TeamDeathMatchConfig |
setGb2004Ini(GameBots2004Ini gb2004Ini)
Values from current Frag/Time limit are automatically copied into the ini.
|
UT2004TeamDeathMatchConfig |
setNativeBot(UT2004NativeBotConfig... bots)
Sets native bot configuration into the object, does not checks whether there is BotId clash.
|
UT2004TeamDeathMatchConfig |
setNativeBots(Map<cz.cuni.amis.utils.token.IToken,UT2004NativeBotConfig> nativeBots) |
UT2004TeamDeathMatchConfig |
setOutputDirectory(File outputDirectory) |
UT2004TeamDeathMatchConfig |
setScoreLimit(int scoreLimit)
Alters GB2004Ini as well.
|
UT2004TeamDeathMatchConfig |
setTeamBlueId(String teamBlueId) |
UT2004TeamDeathMatchConfig |
setTeamRedId(String teamRedId) |
UT2004TeamDeathMatchConfig |
setTimeLimit(int timeLimitInMinutes)
Alters GB2004Ini as well.
|
UT2004TeamDeathMatchConfig |
setUccConf(cz.cuni.amis.pogamut.ut2004.utils.UCCWrapperConf uccConf) |
protected void |
validateInner()
Performs validation of the match configuration:
Checks whether the match id is non-null.
|
addHuman, clearHumans, equals, getAllBotIds, getBots, getBotType, getGb2004Ini, getHumans, getMatchId, getNativeBots, getOutputDirectory, getUccConf, getUT2004Ini, hashCode, isBot, isHuman, isHumanLikeLogEnabled, isNativeBot, isStartTCServer, setHuman, setHumanLikeLogEnabled, setMatchId, setMatchId, setStartTCServer, validateprotected int scoreLimit
protected int timeLimitInMin
protected String teamRedId
protected String teamBlueId
public UT2004TeamDeathMatchConfig()
public UT2004TeamDeathMatchConfig(UT2004TeamDeathMatchConfig orig)
orig - public int getScoreLimit()
public int getTimeLimit()
public UT2004TeamDeathMatchConfig clearBots()
clearBots in class UT2004MatchConfigpublic UT2004TeamDeathMatchConfig clearNativeBots()
clearNativeBots in class UT2004MatchConfigpublic UT2004TeamDeathMatchConfig setOutputDirectory(File outputDirectory)
setOutputDirectory in class UT2004MatchConfigpublic UT2004TeamDeathMatchConfig setScoreLimit(int scoreLimit)
scoreLimit - public UT2004TeamDeathMatchConfig setTimeLimit(int timeLimitInMinutes)
timeLimitInMinutes - public UT2004TeamDeathMatchConfig setUccConf(cz.cuni.amis.pogamut.ut2004.utils.UCCWrapperConf uccConf)
setUccConf in class UT2004MatchConfigpublic UT2004TeamDeathMatchConfig setGb2004Ini(GameBots2004Ini gb2004Ini)
setGb2004Ini in class UT2004MatchConfigpublic UT2004TeamDeathMatchConfig setBots(Map<cz.cuni.amis.utils.token.IToken,UT2004BotConfig> bots)
setBots in class UT2004MatchConfigpublic UT2004TeamDeathMatchConfig setNativeBots(Map<cz.cuni.amis.utils.token.IToken,UT2004NativeBotConfig> nativeBots)
setNativeBots in class UT2004MatchConfigpublic UT2004TeamDeathMatchConfig addBot(UT2004BotConfig... bots)
UT2004MatchConfigaddBot in class UT2004MatchConfigpublic UT2004MatchConfig setBot(UT2004BotConfig... bots)
UT2004MatchConfigsetBot in class UT2004MatchConfigpublic UT2004TeamDeathMatchConfig addNativeBot(UT2004NativeBotConfig... bots)
UT2004MatchConfigaddNativeBot in class UT2004MatchConfigpublic UT2004TeamDeathMatchConfig setNativeBot(UT2004NativeBotConfig... bots)
UT2004MatchConfigsetNativeBot in class UT2004MatchConfigpublic String getTeamRedId()
public UT2004TeamDeathMatchConfig setTeamRedId(String teamRedId)
public String getTeamBlueId()
public UT2004TeamDeathMatchConfig setTeamBlueId(String teamBlueId)
protected void validateInner()
UT2004MatchConfigUccWrapper 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 UT2004MatchConfigCopyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.