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 TCInfoBotLeft extends TCInfoData {
9
10
11
12
13 private static final long serialVersionUID = -4350697544161725191L;
14
15 public static final IToken MESSAGE_TYPE = Tokens.get("TCInfoBotLeft");
16
17 private UnrealId botId;
18
19 private int team;
20
21 public TCInfoBotLeft(long requestId, long simTime) {
22 super(requestId, MESSAGE_TYPE, simTime);
23 }
24
25 public UnrealId getBotId() {
26 return botId;
27 }
28
29
30
31
32
33
34
35
36 public void setBotId(UnrealId botId) {
37 this.botId = botId;
38 }
39
40
41
42
43
44 public int getTeam() {
45 return team;
46 }
47
48 public void setTeam(int team) {
49 this.team = team;
50 }
51
52 @Override
53 public String toString() {
54 return "TCInfoBotLeft[botId=" + (botId == null ? "NULL" : botId.getStringId()) + ", team=" + team + "]";
55 }
56
57 }