View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.teamcomm.mina.server.messages;
2   
3   import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;
4   import cz.cuni.amis.pogamut.ut2004.teamcomm.mina.messages.TCInfoData;
5   import cz.cuni.amis.utils.token.IToken;
6   import cz.cuni.amis.utils.token.Tokens;
7   
8   public class TCInfoBotJoined extends TCInfoData {
9   	
10  	/**
11  	 * Auto-generated.
12  	 */
13  	private static final long serialVersionUID = -1637597443658215022L;
14  
15  	public static final IToken MESSAGE_TYPE = Tokens.get("TCInfoBotJoined");
16  	
17  	private UnrealId botId;
18  	
19  	private int team;
20  	
21  	public TCInfoBotJoined(long requestId, long simTime) {
22  		super(requestId, MESSAGE_TYPE, simTime);
23  	}
24  
25  	public UnrealId getBotId() {
26  		return botId;
27  	}
28  
29  	public void setBotId(UnrealId botId) {
30  		this.botId = botId;
31  	}
32  
33  	public int getTeam() {
34  		return team;
35  	}
36  
37  	public void setTeam(int team) {
38  		this.team = team;
39  	}
40  	
41  	@Override
42  	public String toString() {
43  		return "TCInfoBotJoined[botId=" + (botId == null ? "NULL" : botId.getStringId()) + ", team=" + team + "]";
44  	}
45  
46  }