Class PlayerActivityEntity.Activity
java.lang.Object
games.stendhal.server.entity.mapstuff.useable.PlayerActivityEntity.Activity
- All Implemented Interfaces:
TurnListener
- Enclosing class:
- PlayerActivityEntity
An occurrence of activity.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the holder entity.Get the player.inthashCode()voidonTurnReached(int currentTurn) This method is called when the turn number is reached.
-
Field Details
-
ref
-
-
Constructor Details
-
Activity
Create an activity.- Parameters:
player- The player.
-
-
Method Details
-
getEntity
Get the holder entity.- Returns:
- The holder entity.
-
getPlayer
Get the player.- Returns:
- The player (or
nullif GC'd).
-
onTurnReached
public void onTurnReached(int currentTurn) This method is called when the turn number is reached.- Specified by:
onTurnReachedin interfaceTurnListener- Parameters:
currentTurn- The current turn number.
-
equals
-
hashCode
public int hashCode()
-