1
2
3
4
5 package spellcast.event;
6
7 import java.io.*;
8 import spellcast.beings.*;
9
10 /***
11 * The ConnectionEvent is in response to a <code>ConnectionRequestEvent</code>.
12 * It indicates the spellcast server has the specified wizard connected to it.
13 *
14 * @author Barrie Treloar
15 */
16 public class ConnectionEvent
17 implements GameEvent,
18 Serializable
19 {
20 private Wizard wizard;
21
22 /***
23 * Create a ConnectionEvent.
24 * A ConnectionEvent contains a wizard that has connected to the
25 * spellcast server.
26 *
27 * @param wizard the wizard to add to the client
28 */
29 public ConnectionEvent( Wizard wizard )
30 {
31 this.wizard = wizard;
32 }
33
34 /***
35 * Get the value of wizard.
36 *
37 * @return value of wizard.
38 */
39 public Wizard getWizard()
40 {
41 return wizard;
42 }
43 }
44