Class ReadPostmanMessages

java.lang.Object
games.stendhal.server.entity.player.ReadPostmanMessages
All Implemented Interfaces:
LoginListener, TurnListener

public class ReadPostmanMessages extends Object implements LoginListener, TurnListener
Retrieves postman messages for the logging in player from the database
Author:
kymara
  • Constructor Details

    • ReadPostmanMessages

      public ReadPostmanMessages()
  • Method Details

    • readMessages

      public void readMessages(Player player)
    • onLoggedIn

      public void onLoggedIn(Player player)
      Execute command to get messages for the player when they log in
      Specified by:
      onLoggedIn in interface LoginListener
      Parameters:
      player - the player who logged in
    • onTurnReached

      public void onTurnReached(int currentTurn)
      Completes handling the get messages action.
      Specified by:
      onTurnReached in interface TurnListener
      Parameters:
      currentTurn - ignored