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
ConstructorsConstructorDescriptionStores a message to another player for postman to deliver -
Method Summary
Modifier and TypeMethodDescriptionvoidSends the command to store the message and starts waiting for the results.voidonTurnReached(int currentTurn) Completes handling the store message action, and Notifies the player who sent the message of the outcomestatic voidregister()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:
onActionin 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:
onTurnReachedin interfaceTurnListener- Parameters:
currentTurn- ignored
-