1
2
3
4
5 package spellcast.event;
6
7 import java.io.*;
8
9 /***
10 * A Message Event contains a strig message to be sent to the wizards.
11 *
12 * @author Barrie Treloar
13 */
14 public class MessageEvent
15 implements GameEvent,
16 Serializable
17 {
18 private String message;
19
20 /***
21 * Create a Message Event.
22 */
23 public MessageEvent( String message )
24 {
25 this.message = message;
26 }
27
28 /***
29 * Return the message.
30 *
31 * @return the message for the wizard. Never null.
32 */
33 public String getMessage()
34 {
35 return message;
36 }
37
38 }