Class UpdatePendingAchievementsOnLogin

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

public class UpdatePendingAchievementsOnLogin extends Object implements LoginListener, TurnListener
Retrieves pending or partial achievement information from the database on login Updates the player object if necessary Deletes pending achievements from database so that they are not reapplied next login
Author:
kymara
  • Constructor Details

    • UpdatePendingAchievementsOnLogin

      public UpdatePendingAchievementsOnLogin()
  • Method Details

    • onLoggedIn

      public void onLoggedIn(Player player)
      Description copied from interface: LoginListener
      Is called after a player logged into the game.
      Specified by:
      onLoggedIn in interface LoginListener
      Parameters:
      player - the player who has logged in
    • onTurnReached

      public void onTurnReached(int currentTurn)
      Description copied from interface: TurnListener
      This method is called when the turn number is reached.
      Specified by:
      onTurnReached in interface TurnListener
      Parameters:
      currentTurn - current turn number