Class StoreMessageAction
java.lang.Object
games.stendhal.server.actions.chat.StoreMessageAction
- All Implemented Interfaces:
ActionListener
,TurnListener
Stores a message to another player for postman to deliver
-
Constructor Summary
ConstructorDescriptionStores a message to another player for postman to deliver -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 outcomestatic void
register()
registers "store message" action processor.
-
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
Sends the command to store the message and starts waiting for the results.- Specified by:
onAction
in interfaceActionListener
- 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 interfaceTurnListener
- Parameters:
currentTurn
- ignored
-