View Javadoc

1   /*
2   @See License.txt@
3    */
4   
5   package spellcast.event;
6   
7   import java.io.*;
8   import spellcast.model.*;
9   import spellcast.questions.Question;
10  
11  /***
12   * A Query Event contains a query for the specified client.
13   *
14   * @author Barrie Treloar
15   */
16  
17  public class QueryEvent
18      implements GameEvent,
19                 Serializable
20  {
21      private Question query;
22  
23      public QueryEvent( Question query )
24      {
25          this.query = query;
26      }
27  
28      /***
29       * Get the value of query.
30       *
31       * @return value of query.
32       */
33      public Question getQuery() 
34      {
35          return query;
36      }
37      
38      /***
39       * Set the value of query.
40       *
41       * @param v Value to assign to query.
42       */
43      public void setQuery( Question v ) 
44      {
45          query = v;
46      }
47  
48  }
49