public class UT2004TeamDeathMatch extends UT2004Match<UT2004TeamDeathMatchConfig,UT2004TeamDeathMatchResult>
UT2004Match.Bots| Modifier and Type | Field and Description |
|---|---|
protected int |
targetScoreLimit |
config, exception, fileHandler, gb2004FileBackup, log, result, teamMatch, ut2004FileBackup| Constructor and Description |
|---|
UT2004TeamDeathMatch(UT2004TeamDeathMatchConfig config,
cz.cuni.amis.pogamut.base.utils.logging.LogCategory log) |
| Modifier and Type | Method and Description |
|---|---|
UT2004TeamDeathMatchResult |
execute()
Performs the match and return the result (or throw an exception in case of error).
|
protected void |
outputResults_step1(UT2004TeamDeathMatchResult result,
File outputDirectory) |
protected void |
outputResults_step2(UT2004TeamDeathMatchResult result,
File outputDirectory) |
protected void |
outputResults(cz.cuni.amis.pogamut.ut2004.utils.UCCWrapper ucc,
cz.cuni.amis.pogamut.ut2004.server.impl.UT2004Server server,
cz.cuni.amis.pogamut.ut2004.analyzer.UT2004Analyzer analyzer,
UT2004Match.Bots bots,
UT2004MatchResult result,
File outputDirectory)
Usually STEP 12 ... concludes the match by producing/presenting whatever statistics needed about the match.
|
protected UT2004TeamDeathMatchResult |
processResults(cz.cuni.amis.pogamut.ut2004.utils.UCCWrapper ucc,
cz.cuni.amis.pogamut.ut2004.server.impl.UT2004Server server,
cz.cuni.amis.pogamut.ut2004.analyzer.UT2004Analyzer analyzer,
UT2004Match.Bots bots,
List<Integer> winners,
Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerScore> finalScores,
Map<Integer,cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScore> teamScores) |
protected UT2004MatchResult |
waitMatchFinish(cz.cuni.amis.pogamut.ut2004.utils.UCCWrapper ucc,
cz.cuni.amis.pogamut.ut2004.server.impl.UT2004Server server,
cz.cuni.amis.pogamut.ut2004.analyzer.UT2004Analyzer analyzer,
UT2004Match.Bots bots,
long timeoutInMillis)
Usually STEP 10 ... you wait for a predefined time (blocking method) for the match to finish.
|
call, cleanUp, closeLogger, copyReplay, createGB2004Ini, createUT2004Ini, getConfig, getCurrentDate, getException, getGB2004IniFile, getLog, getMatchId, getOutputPath, getOutputPath, getResult, getUccHome, getUT2004IniFile, changeBotTeam, isHumanPlayer, isTeamMatch, matchIsAboutToBegin, recordReplay, restartMatch, restoreGB2004IniBackup, restoreUT2004IniBackup, run, setupLogger, shutdownAll, startAnalyzer, startBots, startControlServer, startUCC, toString, validate, waitHumanPlayerspublic UT2004TeamDeathMatch(UT2004TeamDeathMatchConfig config, cz.cuni.amis.pogamut.base.utils.logging.LogCategory log)
protected UT2004MatchResult waitMatchFinish(cz.cuni.amis.pogamut.ut2004.utils.UCCWrapper ucc, cz.cuni.amis.pogamut.ut2004.server.impl.UT2004Server server, cz.cuni.amis.pogamut.ut2004.analyzer.UT2004Analyzer analyzer, UT2004Match.Bots bots, long timeoutInMillis)
UT2004MatchThis method may need to be override to provide correct MATCH-FINISHED detecting routine.
Always abide the timeout!
Don't forget to observe whether all 'custom bots' are running! Use UT2004BotExecution.getRunning() flag and FlagListener.
Raises exception in case of any error / timeout
waitMatchFinish in class UT2004Match<UT2004TeamDeathMatchConfig,UT2004TeamDeathMatchResult>ucc - MUST NOT BE NULLserver - MUST NOT BE NULLanalyzer - may be nullbots - MUST NOT BE NULLtimeoutInMillis - must be specified correctlyprotected UT2004TeamDeathMatchResult processResults(cz.cuni.amis.pogamut.ut2004.utils.UCCWrapper ucc, cz.cuni.amis.pogamut.ut2004.server.impl.UT2004Server server, cz.cuni.amis.pogamut.ut2004.analyzer.UT2004Analyzer analyzer, UT2004Match.Bots bots, List<Integer> winners, Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerScore> finalScores, Map<Integer,cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScore> teamScores)
protected void outputResults_step1(UT2004TeamDeathMatchResult result, File outputDirectory)
protected void outputResults_step2(UT2004TeamDeathMatchResult result, File outputDirectory)
protected void outputResults(cz.cuni.amis.pogamut.ut2004.utils.UCCWrapper ucc,
cz.cuni.amis.pogamut.ut2004.server.impl.UT2004Server server,
cz.cuni.amis.pogamut.ut2004.analyzer.UT2004Analyzer analyzer,
UT2004Match.Bots bots,
UT2004MatchResult result,
File outputDirectory)
UT2004MatchRaises exception in case of any error / timeout
outputResults in class UT2004Match<UT2004TeamDeathMatchConfig,UT2004TeamDeathMatchResult>ucc - MUST NOT BE NULLserver - MUST NOT BE NULLanalyzer - may be nullbots - MUST NOT BE NULLresult - MUST NOT BE NULLoutputDirectory - MUST NOT BE NULLpublic UT2004TeamDeathMatchResult execute()
UT2004Match
It is called by UT2004Match.run() that is used by UT2004Match.call().
execute in class UT2004Match<UT2004TeamDeathMatchConfig,UT2004TeamDeathMatchResult>Copyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.