1   /**
2    * Defines an Exception if the Opponent in Battle/BattleAI
3    * wishes to use an Item.
4    * 
5    * @see Battle
6    * @see BattleAI
7    * @see Item
8    * @author Matt, Sam
9    * @version 1234
10   */
11  public class ItemChangeException extends Exception
12  {
13      /**
14       * The Item to use
15       */
16      private Item item;
17      /**
18       * Simple constructor for ItemChangeException
19       * 
20       * @param item the Item to use
21       */
22      public ItemChangeException(Item item)
23      {
24          this.item = item;
25      }
26      /**
27       * Returns the Item to use
28       * 
29       * @return the Item to use
30       */
31      public Item getItem()
32      {
33          return item;    
34      }
35  }