1   import java.awt.*;
2   import java.awt.event.*;
3   import java.applet.*;
4   import java.awt.geom.*;
5   import java.util.*;
6   
7   /**
8    * Simple implementation of the Battle Ending.
9    * 
10   * @see Battle
11   * @see Player
12   * @author Matt, Sam
13   * @version 73.22
14   */
15  public class BattleEndEvent extends AWTEvent 
16  {
17      /**
18       * The Player
19       */
20      Player pl;
21      /**
22       * The UID for this Event
23       */
24      public static final int BATTLE_ENDED = RESERVED_ID_MAX + 23;    // Make sure no conflicts with normal AWT components
25  
26      /**
27       * Construct a BattleEndEvent from a Battle with a Player.
28       * 
29       * @param source the Battle fireing the event
30       * @param id the ID
31       * @param mpl the Player to pass along
32       * @see Battle
33       * @see Player
34       */
35      BattleEndEvent(Battle source, int id, Player mp1)
36      {
37          super( source, id );
38          pl = mp1;
39      }
40      /**
41       * Get the Player in this
42       * 
43       * @return the Player
44       */
45      public Player getPlayer()
46      {
47          return pl;
48      }
49  }
50