cz.cuni.amis.pogamut.ut2004.hideandseek.tournament
Class UT2004HideAndSeek
java.lang.Object
cz.cuni.amis.pogamut.ut2004.tournament.match.UT2004Match<UT2004HideAndSeekConfig,UT2004HideAndSeekResult>
cz.cuni.amis.pogamut.ut2004.hideandseek.tournament.UT2004HideAndSeek
- All Implemented Interfaces:
- Runnable, Callable<UT2004HideAndSeekResult>
public class UT2004HideAndSeek
- extends UT2004Match<UT2004HideAndSeekConfig,UT2004HideAndSeekResult>
|
Method Summary |
protected void |
changeBotTeam(UT2004Server server,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId botId,
int desiredTeam)
|
UT2004HideAndSeekResult |
execute()
|
protected void |
matchIsAboutToBegin(UCCWrapper ucc,
UT2004Server server,
UT2004Analyzer analyzer,
UT2004Match.Bots bots)
STEP 7 ... |
protected void |
outputResults_step1(UT2004HideAndSeekResult result,
File outputDirectory)
|
protected void |
outputResults_step2(UT2004HideAndSeekResult result,
File outputDirectory)
|
protected void |
outputResults(UCCWrapper ucc,
UT2004Server server,
UT2004Analyzer analyzer,
UT2004Match.Bots bots,
UT2004MatchResult result,
File outputDirectory)
|
protected UT2004HideAndSeekResult |
processResults(UCCWrapper ucc,
UT2004Server server,
UT2004Analyzer analyzer,
UT2004Match.Bots bots,
List<cz.cuni.amis.utils.token.IToken> winners,
Map<cz.cuni.amis.utils.token.IToken,HSBotRecord<PlayerMessage>> botRecords)
|
protected UT2004Server |
startControlServer(UCCWrapper ucc)
Usually STEP 4 ... |
protected UT2004MatchResult |
waitMatchFinish(UCCWrapper ucc,
UT2004Server server,
UT2004Analyzer analyzer,
UT2004Match.Bots bots,
long timeoutInMillis)
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.tournament.match.UT2004Match |
call, cleanUp, closeLogger, copyReplay, createGB2004Ini, getConfig, getCurrentDate, getException, getGB2004IniFile, getLog, getMatchId, getOutputPath, getOutputPath, getResult, getUccHome, isTeamMatch, recordReplay, restartMatch, restoreGB2004IniBackup, run, setupLogger, shutdownAll, startAnalyzer, startBots, startUCC, toString, validate |
UT2004HideAndSeek
public UT2004HideAndSeek(UT2004HideAndSeekConfig config,
cz.cuni.amis.pogamut.base.utils.logging.LogCategory log)
changeBotTeam
protected void changeBotTeam(UT2004Server server,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId botId,
int desiredTeam)
- Overrides:
changeBotTeam in class UT2004Match<UT2004HideAndSeekConfig,UT2004HideAndSeekResult>
waitMatchFinish
protected UT2004MatchResult waitMatchFinish(UCCWrapper ucc,
UT2004Server server,
UT2004Analyzer analyzer,
UT2004Match.Bots bots,
long timeoutInMillis)
- Specified by:
waitMatchFinish in class UT2004Match<UT2004HideAndSeekConfig,UT2004HideAndSeekResult>
processResults
protected UT2004HideAndSeekResult processResults(UCCWrapper ucc,
UT2004Server server,
UT2004Analyzer analyzer,
UT2004Match.Bots bots,
List<cz.cuni.amis.utils.token.IToken> winners,
Map<cz.cuni.amis.utils.token.IToken,HSBotRecord<PlayerMessage>> botRecords)
outputResults_step1
protected void outputResults_step1(UT2004HideAndSeekResult result,
File outputDirectory)
outputResults_step2
protected void outputResults_step2(UT2004HideAndSeekResult result,
File outputDirectory)
outputResults
protected void outputResults(UCCWrapper ucc,
UT2004Server server,
UT2004Analyzer analyzer,
UT2004Match.Bots bots,
UT2004MatchResult result,
File outputDirectory)
- Specified by:
outputResults in class UT2004Match<UT2004HideAndSeekConfig,UT2004HideAndSeekResult>
startControlServer
protected UT2004Server startControlServer(UCCWrapper ucc)
- Usually STEP 4 ... after the UCC has started up, you usually want to connect to it to confirm it is up and running
and be able to observe any changes in the environment / alter the environment, etc.
This method may need to be override to provide custom implementation of UT2004Server interface, i.e.,
provide your custom control server. Current implementation is using UT2004Server.
Raises exception in case of any error.
- Overrides:
startControlServer in class UT2004Match<UT2004HideAndSeekConfig,UT2004HideAndSeekResult>
- Parameters:
ucc - MUST NOT BE NULL
- Returns:
- running control server
matchIsAboutToBegin
protected void matchIsAboutToBegin(UCCWrapper ucc,
UT2004Server server,
UT2004Analyzer analyzer,
UT2004Match.Bots bots)
- STEP 7 ... start the hide-and-seek game
- Overrides:
matchIsAboutToBegin in class UT2004Match<UT2004HideAndSeekConfig,UT2004HideAndSeekResult>
- Parameters:
ucc - MUST NOT BE NULLserver - MUST NOT BE NULLanalyzer - may be nullbots - MUST NOT BE NULL
execute
public UT2004HideAndSeekResult execute()
- Specified by:
execute in class UT2004Match<UT2004HideAndSeekConfig,UT2004HideAndSeekResult>
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.