Package mekhq.campaign.randomEvents
Class GrayMonday
java.lang.Object
mekhq.campaign.randomEvents.GrayMonday
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LocalDate
static final LocalDate
static final LocalDate
Deprecated, for removal: This API element is subject to removal in a future version.unusedstatic final LocalDate
Deprecated, for removal: This API element is subject to removal in a future version.unused except in deprecated classesstatic final LocalDate
static final LocalDate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isGrayMonday
(LocalDate today, boolean isUseGrayMonday) Determines whether the current date falls within the Gray Monday event period.
-
Field Details
-
GRAY_MONDAY_EVENTS_BEGIN
-
BANKRUPTCY
-
EMPLOYER_BEGGING
-
GRAY_MONDAY_EVENTS_END
-
EVENT_DATE_CLARION_NOTE
Deprecated, for removal: This API element is subject to removal in a future version.unused -
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
-
GrayMonday
-
-
Method Details
-
isGrayMonday
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 aLocalDate
object.isUseGrayMonday
- Aboolean
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.
-