View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.hideandseek.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   import cz.cuni.amis.pogamut.ut2004.hideandseek.server.UT2004HSServer;
7   
8   /**
9    * Seeker has spotted {@link HSRunnerSpotted#getBotId()} and may capture him by running into the safe area before it.
10   * <p><p>
11   * NOTE THAT THE SEEKER CANNOT CAPTURE THE RUNNER BEFORE THIS MESSAGE IS BROADCAST!
12   * {@link UT2004HSServer} implements delay between "runner is visible" and "seeker is spotted" to allow "peeking-around-the-corner" behavior for
13   * the seeker.
14   * 
15   * @author Jimmy
16   */
17  @ControlMessageType(type="HS_RUNNER_SPOTTED")
18  public class HSRunnerSpotted extends HSMessage {
19  	
20  	@ControlMessageField(index=1)
21  	private UnrealId botId;
22  	
23  	public HSRunnerSpotted() {
24  	}
25  
26  	public UnrealId getBotId() {
27  		return botId;
28  	}
29  
30  	public void setBotId(UnrealId botId) {
31  		this.botId = botId;
32  	}
33  
34  }