Class RandomEventDialog

java.lang.Object
mekhq.gui.dialog.RandomEventDialog

public class RandomEventDialog extends Object
  • Constructor Details

  • Method Details

    • getDialogChoice

      public int getDialogChoice()
    • wasSuccessful

      public boolean wasSuccessful()
    • getFollowOnEvent

      @Nullable public String getFollowOnEvent(int responseIndex)
    • resolveEvent

      public void resolveEvent(boolean useEdge)
    • reportActionCheckResults

      public void reportActionCheckResults()
    • showResolutionDialog

      public void showResolutionDialog(RandomEventData event, String eventReport)
      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 - the RandomEventData associated with the dialog
      eventReport - additional report or commentary to display in the dialog (maybe null)
      Since:
      0.50.06