View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.tag.protocol.messages;
2   
3   import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;
4   import cz.cuni.amis.pogamut.ut2004.communication.messages.custom.ControlMessageField;
5   import cz.cuni.amis.pogamut.ut2004.communication.messages.custom.ControlMessageType;
6   
7   @ControlMessageType(type="TAG_PLAYER_SCORE_CHANGED")
8   public class TagPlayerScoreChanged extends TagMessage {
9   
10  	@ControlMessageField(index=1)
11  	private UnrealId botId;
12  	
13  	@ControlMessageField(index=1)
14  	private Integer score;
15  	
16  	public TagPlayerScoreChanged() {
17  	}
18  
19  	public UnrealId getBotId() {
20  		return botId;
21  	}
22  
23  	public void setBotId(UnrealId botId) {
24  		this.botId = botId;
25  	}
26  
27  	/**
28  	 * How many times was this bot TAGGED (negative score).
29  	 * @return
30  	 */
31  	public Integer getScore() {
32  		return score;
33  	}
34  
35  	public void setScore(Integer score) {
36  		this.score = score;
37  	}
38  
39  }