Class StoreMessageAction

java.lang.Object
games.stendhal.server.actions.chat.StoreMessageAction
All Implemented Interfaces:
ActionListener, TurnListener

public class StoreMessageAction extends Object implements ActionListener, TurnListener
Stores a message to another player for postman to deliver
  • Constructor Summary

    Constructors
    Constructor
    Description
    Stores a message to another player for postman to deliver
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onAction​(Player player, RPAction action)
    Sends the command to store the message and starts waiting for the results.
    void
    onTurnReached​(int currentTurn)
    Completes handling the store message action, and Notifies the player who sent the message of the outcome
    static void
    registers "store message" action processor.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StoreMessageAction

      public StoreMessageAction()
      Stores a message to another player for postman to deliver
  • Method Details

    • register

      public static void register()
      registers "store message" action processor.
    • onAction

      public void onAction(Player player, RPAction action)
      Sends the command to store the message and starts waiting for the results.
      Specified by:
      onAction in interface ActionListener
      Parameters:
      player - The player.
      action - The action.
    • onTurnReached

      public void onTurnReached(int currentTurn)
      Completes handling the store message action, and Notifies the player who sent the message of the outcome
      Specified by:
      onTurnReached in interface TurnListener
      Parameters:
      currentTurn - ignored