Class GrayMonday

java.lang.Object
mekhq.campaign.randomEvents.GrayMonday

public class GrayMonday extends Object
  • Field Details

    • GRAY_MONDAY_EVENTS_BEGIN

      public static final LocalDate GRAY_MONDAY_EVENTS_BEGIN
    • BANKRUPTCY

      public static final LocalDate BANKRUPTCY
    • EMPLOYER_BEGGING

      public static final LocalDate EMPLOYER_BEGGING
    • GRAY_MONDAY_EVENTS_END

      public static final LocalDate GRAY_MONDAY_EVENTS_END
    • EVENT_DATE_CLARION_NOTE

      @Deprecated(since="0.50.06", forRemoval=true) public static final LocalDate EVENT_DATE_CLARION_NOTE
      Deprecated, for removal: This API element is subject to removal in a future version.
      unused
    • EVENT_DATE_GRAY_MONDAY

      @Deprecated(since="0.50.06", forRemoval=true) public static final LocalDate EVENT_DATE_GRAY_MONDAY
      Deprecated, for removal: This API element is subject to removal in a future version.
      unused except in deprecated classes
  • Constructor Details

  • Method Details

    • isGrayMonday

      public static boolean isGrayMonday(LocalDate today, boolean isUseGrayMonday)
      Determines whether the current date falls within the Gray Monday event period.

      This method checks if the Gray Monday event is enabled and whether the given date falls within the defined period of the Gray Monday event.

      Parameters:
      today - The current date as a LocalDate object.
      isUseGrayMonday - A boolean flag indicating whether the campaign is tracking Gray Monday.
      Returns:
      true if Gray Monday is active for the given date and campaign configuration, false otherwise.