View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.teamcomm.bot;
2   
3   import cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot;
4   import cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotModuleController;
5   import cz.cuni.amis.pogamut.ut2004.teamcomm.server.UT2004TCServer;
6   import cz.cuni.amis.pogamut.ut2004.teamcomm.server.protocol.messages.TCControlServerAlive;
7   
8   public class UT2004BotTCController<BOT extends UT2004Bot> extends UT2004BotModuleController<BOT> {
9   
10  	protected UT2004TCClient tcClient;
11  		
12  	protected void initializeModules(BOT bot) {
13  		super.initializeModules(bot);
14  		tcClient = new UT2004TCClient(bot, bot.getWorldView());		
15  	}
16  	
17  	/**
18  	 * Team-Communication client, auto-connects to {@link UT2004TCServer} once the server advertised itself via {@link TCControlServerAlive} message.
19  	 * @return
20  	 */
21  	public UT2004TCClient getTCClient() {
22  		return tcClient;
23  	};
24  	
25  }