public class UT2004DeathMatch extends UT2004Match<UT2004DeathMatchConfig,UT2004DeathMatchResult>
UT2004Match.Botsconfig, exception, fileHandler, log, result, teamMatch| Constructor and Description |
|---|
UT2004DeathMatch(UT2004DeathMatchConfig config,
cz.cuni.amis.pogamut.base.utils.logging.LogCategory log) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
changeBotTeam(UT2004Server server,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId botId,
int desiredTeam) |
UT2004DeathMatchResult |
execute()
Performs the match and return the result (or throw an exception in case of error).
|
protected void |
outputResults_step1(UT2004DeathMatchResult result,
File outputDirectory) |
protected void |
outputResults_step2(UT2004DeathMatchResult result,
File outputDirectory) |
protected void |
outputResults(UCCWrapper ucc,
UT2004Server server,
UT2004Analyzer analyzer,
UT2004Match.Bots bots,
UT2004MatchResult result,
File outputDirectory)
Usually STEP 12 ...
|
protected UT2004DeathMatchResult |
processResults(UCCWrapper ucc,
UT2004Server server,
UT2004Analyzer analyzer,
UT2004Match.Bots bots,
List<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId> winners,
Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,PlayerScore> finalScores) |
protected UT2004MatchResult |
waitMatchFinish(UCCWrapper ucc,
UT2004Server server,
UT2004Analyzer analyzer,
UT2004Match.Bots bots,
long timeoutInMillis)
Usually STEP 10 ...
|
call, cleanUp, closeLogger, copyReplay, createGB2004Ini, getConfig, getCurrentDate, getException, getGB2004IniFile, getLog, getMatchId, getOutputPath, getOutputPath, getResult, getUccHome, isTeamMatch, matchIsAboutToBegin, recordReplay, restartMatch, restoreGB2004IniBackup, run, setupLogger, shutdownAll, startAnalyzer, startBots, startControlServer, startUCC, toString, validatepublic UT2004DeathMatch(UT2004DeathMatchConfig config, cz.cuni.amis.pogamut.base.utils.logging.LogCategory log)
protected void changeBotTeam(UT2004Server server, cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId botId, int desiredTeam)
changeBotTeam in class UT2004Match<UT2004DeathMatchConfig,UT2004DeathMatchResult>protected UT2004MatchResult waitMatchFinish(UCCWrapper ucc, UT2004Server server, 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<UT2004DeathMatchConfig,UT2004DeathMatchResult>ucc - MUST NOT BE NULLserver - MUST NOT BE NULLanalyzer - may be nullbots - MUST NOT BE NULLtimeoutInMillis - must be specified correctlyprotected UT2004DeathMatchResult processResults(UCCWrapper ucc, UT2004Server server, UT2004Analyzer analyzer, UT2004Match.Bots bots, List<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId> winners, Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,PlayerScore> finalScores)
protected void outputResults_step1(UT2004DeathMatchResult result, File outputDirectory)
protected void outputResults_step2(UT2004DeathMatchResult result, File outputDirectory)
protected void outputResults(UCCWrapper ucc, UT2004Server server, UT2004Analyzer analyzer, UT2004Match.Bots bots, UT2004MatchResult result, File outputDirectory)
UT2004MatchRaises exception in case of any error / timeout
outputResults in class UT2004Match<UT2004DeathMatchConfig,UT2004DeathMatchResult>ucc - MUST NOT BE NULLserver - MUST NOT BE NULLanalyzer - may be nullbots - MUST NOT BE NULLresult - MUST NOT BE NULLoutputDirectory - MUST NOT BE NULLpublic UT2004DeathMatchResult execute()
UT2004Match
It is called by UT2004Match.run() that is used by UT2004Match.call().
execute in class UT2004Match<UT2004DeathMatchConfig,UT2004DeathMatchResult>Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.