1   /**
2    * If the Moster has Monster.MAXATTACKS throws this.
3    * 
4    * @see Monster
5    * @author Matt, Sam
6    * @version 1.1.1
7    */
8   public class AttacksFullException extends Exception 
9   {
10      /**
11       * The offending Attack
12       */
13      Attack a;
14      /**
15       * Construct a new this.
16       * 
17       * @param s the String used in toString
18       * @param a the offending Attack
19       */
20      public AttacksFullException(String s, Attack a) 
21      {
22          super(s);
23          this.a = a;
24      }
25      /**
26       * Gets the offending Attack.
27       * 
28       * @return The offending Attack
29       */
30      public Attack getAttack() { return a; }
31  }