Class GetKillerAlertEvent
- java.lang.Object
-
- org.kikikan.deadbymoonlight.events.Event
-
- org.kikikan.deadbymoonlight.events.world.GetKillerAlertEvent
-
public final class GetKillerAlertEvent extends Event
Gets created whenever a Killer should receive a Killer Alert Notification. Contains the reason, and the Survivor who raised the Alert (if there's one). Setting this value to false will cancel the event, and the Killer won't receive the Notification.
-
-
Field Summary
Fields Modifier and Type Field Description KillerAlertReason
reason
The reason why this Alert was generated in the first place.
-
Constructor Summary
Constructors Constructor Description GetKillerAlertEvent(Game game, KillerAlertReason reason)
GetKillerAlertEvent(Game game, KillerAlertReason reason, Survivor survivor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancels the Alert, meaning, the Killer will not receive this Alert.Survivor
getSurvivor()
Gets the Survivor who fired the event (if there's one).boolean
isCancelled()
Checks if the Alert was cancelled.
-
-
-
Field Detail
-
reason
public final KillerAlertReason reason
The reason why this Alert was generated in the first place.
-
-
Constructor Detail
-
GetKillerAlertEvent
public GetKillerAlertEvent(Game game, KillerAlertReason reason)
-
GetKillerAlertEvent
public GetKillerAlertEvent(Game game, KillerAlertReason reason, Survivor survivor)
-
-
Method Detail
-
isCancelled
public boolean isCancelled()
Checks if the Alert was cancelled.- Returns:
- True if it was cancelled.
-
cancel
public void cancel()
Cancels the Alert, meaning, the Killer will not receive this Alert.
-
getSurvivor
public Survivor getSurvivor()
Gets the Survivor who fired the event (if there's one).- Returns:
- The Survivor who fired the event or null if no specific Survivor fired the event.
-
-