Class DelayedPlayerTextSender

java.lang.Object
games.stendhal.server.core.events.DelayedPlayerTextSender
All Implemented Interfaces:
TurnListener
Direct Known Subclasses:
GuaranteedDelayedPlayerTextSender

public class DelayedPlayerTextSender extends Object implements TurnListener
Delays the sending of text until the next turn (to work around problems like zone changes).
  • Field Details

  • Constructor Details

    • DelayedPlayerTextSender

      public DelayedPlayerTextSender(Player player, String message, int seconds)
      Creates a new private message type DelayedPlayerTextSender.
      Parameters:
      player - Player to send this message to
      message - message
      seconds -
    • DelayedPlayerTextSender

      public DelayedPlayerTextSender(Player player, String message, NotificationType type, int seconds)
      Creates a new DelayedPlayerTextSender.
      Parameters:
      player - Player to send this message to
      message - message
      type - logical notificationType
      seconds - 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 interface TurnListener
      Parameters:
      currentTurn - current turn number