Class PlayerActivityEntity.Activity

java.lang.Object
games.stendhal.server.entity.mapstuff.useable.PlayerActivityEntity.Activity
All Implemented Interfaces:
TurnListener
Enclosing class:
PlayerActivityEntity

protected class PlayerActivityEntity.Activity extends Object implements TurnListener
An occurrence of activity.
  • Field Details

  • Constructor Details

    • Activity

      public Activity(Player player)
      Create an activity.
      Parameters:
      player - The player.
  • Method Details

    • getEntity

      public PlayerActivityEntity getEntity()
      Get the holder entity.
      Returns:
      The holder entity.
    • getPlayer

      public Player 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 interface TurnListener
      Parameters:
      currentTurn - The current turn number.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object