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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onLoggedIn(Player player)
Is called after a player logged into the game.void
onTurnReached(int currentTurn)
This method is called when the turn number is reached.
-
Constructor Details
-
UpdatePendingAchievementsOnLogin
public UpdatePendingAchievementsOnLogin()
-
-
Method Details
-
onLoggedIn
Description copied from interface:LoginListener
Is called after a player logged into the game.- Specified by:
onLoggedIn
in interfaceLoginListener
- 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 interfaceTurnListener
- Parameters:
currentTurn
- current turn number
-