View Javadoc

1   /*
2    @See License.txt@
3    */
4   
5   package spellcast.event;
6   
7   import java.io.Serializable;
8   
9   import spellcast.beings.IWizard;
10  import spellcast.model.Id;
11  
12  /***
13   * The DisconnectionEvent is in response to a
14   * <code>DisconnectionRequestEvent</code>. It indicates the spellcast server
15   * has disconnected the specified wizard.
16   *
17   * @author Barrie Treloar
18   */
19  public class DisconnectionEvent implements GameEvent, Serializable {
20      private static final long serialVersionUID = 1L;
21  
22      /***
23       * Create a DisconnectionEvent that indicates the wizard has disconnected.
24       */
25      public DisconnectionEvent(IWizard target) {
26          this.wizardID = target.getId();
27      }
28  
29      /***
30       * Get the value of wizardID.
31       *
32       * @return value of wizardID.
33       */
34      public Id getWizardID() {
35          return wizardID;
36      }
37  
38      /***
39       * Set the value of wizardID.
40       *
41       * @param v
42       *            Value to assign to wizardID.
43       */
44      public void setWizardID(Id v) {
45          wizardID = v;
46      }
47  
48      private Id wizardID;
49  
50  }