Package megamek.common.event
Class GameReportEvent
java.lang.Object
java.util.EventObject
megamek.common.event.GameEvent
megamek.common.event.GameReportEvent
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSub-classed events implement this method to call their specific method on a GameListener instance that their event has been fired.Get the text of the report associated with this event.Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
GameReportEvent
Create a new Report event.- Parameters:
source- the Object that generated this reports- a String of the report
-
-
Method Details
-
getReport
Get the text of the report associated with this event.- Returns:
- a String of the report
-
fireEvent
Description copied from class:GameEventSub-classed events implement this method to call their specific method on a GameListener instance that their event has been fired. -
getEventName
- Specified by:
getEventNamein classGameEvent
-