Class PrepSettingsService

java.lang.Object
dev.deepcore.challenge.session.PrepSettingsService

public final class PrepSettingsService extends Object
Applies prep GUI settings mutations with related normalization rules.
  • Constructor Details

    • PrepSettingsService

      public PrepSettingsService(ChallengeManager challengeManager, Runnable syncWorldRules, Runnable applySharedVitalsIfEnabled)
      Creates a prep settings service.
      Parameters:
      challengeManager - challenge manager for component state mutations
      syncWorldRules - action that reapplies world rule state
      applySharedVitalsIfEnabled - action that reapplies shared-vitals state when enabled
  • Method Details

    • toggleComponent

      public void toggleComponent(ChallengeComponent component)
      Toggles a challenge component and applies dependent updates.
      Parameters:
      component - challenge component to toggle
    • setHealthRefill

      public void setHealthRefill(boolean enabled)
      Sets health refill state and enforces mutual exclusion with half-heart mode.
      Parameters:
      enabled - true to enable health refill
    • setInitialHalfHeart

      public void setInitialHalfHeart(boolean enabled)
      Sets initial-half-heart state and enforces mutual exclusion with health refill.
      Parameters:
      enabled - true to enable initial-half-heart mode