Package mekhq.gui.dialog
Class RandomEventDialog
java.lang.Object
mekhq.gui.dialog.RandomEventDialog
-
Constructor Summary
ConstructorsConstructorDescriptionRandomEventDialog(Campaign campaign, Person activeEventParticipant, Person passiveEventParticipant, RandomEventData eventData) -
Method Summary
Modifier and TypeMethodDescriptionintgetFollowOnEvent(int responseIndex) voidvoidresolveEvent(boolean useEdge) voidshowResolutionDialog(RandomEventData event, String eventReport) Displays a dialog to the player presenting the outcome of their response to a prisoner event.boolean
-
Constructor Details
-
RandomEventDialog
public RandomEventDialog(Campaign campaign, Person activeEventParticipant, @Nullable Person passiveEventParticipant, RandomEventData eventData)
-
-
Method Details
-
getDialogChoice
public int getDialogChoice() -
wasSuccessful
public boolean wasSuccessful() -
getFollowOnEvent
-
resolveEvent
public void resolveEvent(boolean useEdge) -
reportActionCheckResults
public void reportActionCheckResults() -
showResolutionDialog
Displays a dialog to the player presenting the outcome of their response to a prisoner event.Generates an in-character message based on whether the player's action was successful or a failure, using localized resources and the specific response choice. The dialog presents this message along with an optional event report to provide context or details about the event's resolution.
- Parameters:
event- theRandomEventDataassociated with the dialogeventReport- additional report or commentary to display in the dialog (maybenull)- Since:
- 0.50.06
-