Class UpdatePendingAchievementsOnLogin
java.lang.Object
games.stendhal.server.entity.player.UpdatePendingAchievementsOnLogin
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonLoggedIn(Player player) Is called after a player logged into the game.voidonTurnReached(int currentTurn) This method is called when the turn number is reached.
-
Constructor Details
-
UpdatePendingAchievementsOnLogin
public UpdatePendingAchievementsOnLogin()
-
-
Method Details
-
onLoggedIn
Description copied from interface:LoginListenerIs called after a player logged into the game.- Specified by:
onLoggedInin interfaceLoginListener- Parameters:
player- the player who has logged in
-
onTurnReached
public void onTurnReached(int currentTurn) Description copied from interface:TurnListenerThis method is called when the turn number is reached.- Specified by:
onTurnReachedin interfaceTurnListener- Parameters:
currentTurn- current turn number
-