megamek.common.event
Class GameReportEvent

java.lang.Object
  extended by java.util.EventObject
      extended by megamek.common.event.GameEvent
          extended by megamek.common.event.GameReportEvent
All Implemented Interfaces:
java.io.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:
Serialized Form

Field Summary
 
Fields inherited from class megamek.common.event.GameEvent
GAME_BOARD_CHANGE, GAME_BOARD_NEW, GAME_END, GAME_ENTITY_CHANGE, GAME_ENTITY_NEW, GAME_ENTITY_NEW_OFFBOARD, GAME_ENTITY_REMOVE, GAME_MAP_QUERY, GAME_NEW_ACTION, GAME_PHASE_CHANGE, GAME_PLAYER_CHANGE, GAME_PLAYER_CHAT, GAME_PLAYER_CONNECTED, GAME_PLAYER_DISCONNECTED, GAME_REPORT, GAME_SETTINGS_CHANGE, GAME_TURN_CHANGE, type
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GameReportEvent(java.lang.Object source, java.lang.String s)
          Create a new Report event.
 
Method Summary
 java.lang.String getReport()
          Get the text of the report associated with this event.
 
Methods inherited from class megamek.common.event.GameEvent
getType, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameReportEvent

public GameReportEvent(java.lang.Object source,
                       java.lang.String s)
Create a new Report event.

Parameters:
source - the Object that generated this report
s - a String of the report
Method Detail

getReport

public java.lang.String getReport()
Get the text of the report associated with this event.

Returns:
a String of the report