Package dev.deepcore.challenge.session
Class SessionFailureService
java.lang.Object
dev.deepcore.challenge.session.SessionFailureService
Evaluates run-failure conditions and performs reset flow when triggered.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionFailureService(SessionState sessionState, ChallengeManager challengeManager, Set<UUID> participants, Set<UUID> eliminatedPlayers, Set<UUID> recentlyDeadPlayers, ActionBarTickerService actionBarTickerService, Runnable clearActionBar, Supplier<WorldResetManager> worldResetManagerSupplier, DeepCoreLogger log) Creates a session failure service. -
Method Summary
Modifier and TypeMethodDescriptionvoidEvaluates and handles all-players-dead failure reset conditions.voidEvaluates and handles hardcore-mode failure reset conditions.
-
Constructor Details
-
SessionFailureService
public SessionFailureService(SessionState sessionState, ChallengeManager challengeManager, Set<UUID> participants, Set<UUID> eliminatedPlayers, Set<UUID> recentlyDeadPlayers, ActionBarTickerService actionBarTickerService, Runnable clearActionBar, Supplier<WorldResetManager> worldResetManagerSupplier, DeepCoreLogger log) Creates a session failure service.- Parameters:
sessionState- mutable session phase/state containerchallengeManager- challenge settings and component managerparticipants- active run participantseliminatedPlayers- hardcore-eliminated participantsrecentlyDeadPlayers- recently dead participants for failure checksactionBarTickerService- action-bar ticker serviceclearActionBar- runnable clearing action bar text for participantsworldResetManagerSupplier- supplier for current world reset managerlog- challenge logger for player/admin messaging
-
-
Method Details
-
handleHardcoreFailureIfNeeded
public void handleHardcoreFailureIfNeeded()Evaluates and handles hardcore-mode failure reset conditions. -
handleAllPlayersDeadFailureIfNeeded
public void handleAllPlayersDeadFailureIfNeeded()Evaluates and handles all-players-dead failure reset conditions.
-