Class GameReportEvent

All Implemented Interfaces:
Serializable

public class GameReportEvent extends GameEvent
Normally, reports are dealt with during report phases. When a report is sent at an odd time though, an instance of this class is sent.
See Also:
  • Constructor Details

    • GameReportEvent

      public GameReportEvent(Object source, String s)
      Create a new Report event.
      Parameters:
      source - the Object that generated this report
      s - a String of the report
  • Method Details

    • getReport

      public String getReport()
      Get the text of the report associated with this event.
      Returns:
      a String of the report
    • fireEvent

      public void fireEvent(GameListener gl)
      Description copied from class: GameEvent
      Sub-classed events implement this method to call their specific method on a GameListener instance that their event has been fired.
      Specified by:
      fireEvent in class GameEvent
      Parameters:
      gl - GameListener recipient.
    • getEventName

      public String getEventName()
      Specified by:
      getEventName in class GameEvent