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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the holder entity.Get the player.int
hashCode()
void
onTurnReached(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
null
if GC'd).
-
onTurnReached
public void onTurnReached(int currentTurn)This method is called when the turn number is reached.- Specified by:
onTurnReached
in interfaceTurnListener
- Parameters:
currentTurn
- The current turn number.
-
equals
-
hashCode
public int hashCode()
-