View Javadoc

1   /*
2   @See License.txt@
3    */
4   
5   package spellcast.event;
6   
7   import java.io.*;
8   import java.util.*;
9   import spellcast.gestures.*;
10  
11  /***
12   * An Ok Event specifies that the wizard has completed their turn.
13   * The gestures and answers for the current turn are also provided.
14   *
15   * @author Barrie Treloar
16   */
17  
18  public class OkEvent
19      implements GameEvent,
20                 Serializable
21  {
22      private Gesture leftHandGesture;
23      private Gesture rightHandGesture;
24      private List answers;
25      
26      /***
27       * Create an OkEvent.
28       */
29      public OkEvent()
30      {
31      }
32  
33      /***
34       * Get the value of leftHandGesture.
35       *
36       * @return value of leftHandGesture.
37       */
38      public Gesture getLeftHandGesture() 
39      {
40          return leftHandGesture;
41      }
42      
43      /***
44       * Set the value of leftHandGesture.
45       *
46       * @param v Value to assign to leftHandGesture.
47       */
48      public void setLeftHandGesture( Gesture v ) 
49      {
50          leftHandGesture = v;
51      }
52    
53      /***
54       * Get the value of rightHandGesture.
55       *
56       * @return value of rightHandGesture.
57       */
58      public Gesture getRightHandGesture() 
59      {
60          return rightHandGesture;
61      }
62      
63      /***
64       * Set the value of rightHandGesture.
65       *
66       * @param v Value to assign to rightHandGesture.
67       */
68      public void setRightHandGesture( Gesture v ) 
69      {
70          rightHandGesture = v;
71      }
72  
73      /***
74       * Get the value of answers.
75       *
76       * @return value of answers.
77       */
78      public List getAnswers() 
79      {
80          return answers;
81      }
82      
83      /***
84       * Set the value of answers.
85       *
86       * @param v Value to assign to answers.
87       */
88      public void setAnswers( List v ) 
89      {
90          answers = v;
91      }
92  
93  }
94