1
2
3
4
5 package spellcast.event;
6
7 import java.io.*;
8
9 /***
10 * Request a connection to the Spellcast Game.
11 *
12 * @author Barrie Treloar
13 */
14 public class ConnectionRequestEvent
15 implements GameEvent,
16 Serializable
17 {
18 private String wizardName;
19 private String gender;
20
21 /***
22 * Create a ConnectionRequestEvent where NO_ONE is the originator
23 * (we have yet to be assigned an id from the server), SPELLCAST is the target,
24 * and the recipient is SPELLCAST.
25 */
26 public ConnectionRequestEvent( String wizardName, String gender )
27 {
28 this.wizardName = wizardName;
29 this.gender = gender;
30 }
31
32 /***
33 * Get the value of wizardName.
34 *
35 * @return value of wizardName.
36 */
37 public String getWizardName()
38 {
39 return wizardName;
40 }
41
42 /***
43 * Get the value of gender.
44 *
45 * @return value of gender.
46 */
47 public String getGender()
48 {
49 return gender;
50 }
51
52 }
53