Class DelayedPlayerTextSender
java.lang.Object
games.stendhal.server.core.events.DelayedPlayerTextSender
- All Implemented Interfaces:
TurnListener
- Direct Known Subclasses:
GuaranteedDelayedPlayerTextSender
Delays the sending of text until the next turn (to work
around problems like zone changes).
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDelayedPlayerTextSender(Player player, String message, int seconds)
Creates a new private message type DelayedPlayerTextSender.DelayedPlayerTextSender(Player player, String message, NotificationType type, int seconds)
Creates a new DelayedPlayerTextSender. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onTurnReached(int currentTurn)
This method is called when the turn number is reached.
-
Field Details
-
player
-
message
-
type
-
-
Constructor Details
-
DelayedPlayerTextSender
Creates a new private message type DelayedPlayerTextSender.- Parameters:
player
- Player to send this message tomessage
- messageseconds
-
-
DelayedPlayerTextSender
Creates a new DelayedPlayerTextSender.- Parameters:
player
- Player to send this message tomessage
- messagetype
- logical notificationTypeseconds
- delay in seconds
-
-
Method Details
-
onTurnReached
public void onTurnReached(int currentTurn)Description copied from interface:TurnListener
This method is called when the turn number is reached.- Specified by:
onTurnReached
in interfaceTurnListener
- Parameters:
currentTurn
- current turn number
-