Class ReadPostmanMessages
java.lang.Object
games.stendhal.server.entity.player.ReadPostmanMessages
- All Implemented Interfaces:
LoginListener
,TurnListener
Retrieves postman messages for the logging in player from the database
- Author:
- kymara
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onLoggedIn(Player player)
Execute command to get messages for the player when they log invoid
onTurnReached(int currentTurn)
Completes handling the get messages action.void
readMessages(Player player)
-
Constructor Details
-
ReadPostmanMessages
public ReadPostmanMessages()
-
-
Method Details
-
readMessages
-
onLoggedIn
Execute command to get messages for the player when they log in- Specified by:
onLoggedIn
in interfaceLoginListener
- Parameters:
player
- the player who logged in
-
onTurnReached
public void onTurnReached(int currentTurn)Completes handling the get messages action.- Specified by:
onTurnReached
in interfaceTurnListener
- Parameters:
currentTurn
- ignored
-