Class GrayMonday

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

public class GrayMonday extends Object
  • Field Details

    • EVENT_DATE_CLARION_NOTE

      public static final LocalDate EVENT_DATE_CLARION_NOTE
    • EVENT_DATE_GRAY_MONDAY

      public static final LocalDate EVENT_DATE_GRAY_MONDAY
  • 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.