Class LoadSignFromHallOfFameAction

java.lang.Object
games.stendhal.server.entity.npc.action.LoadSignFromHallOfFameAction
All Implemented Interfaces:
ChatAction, PostTransitionAction

@Dev(category=IGNORE) public class LoadSignFromHallOfFameAction extends Object implements ChatAction
Displays text from the hall of fame on a sign.
Author:
hendrik
  • Constructor Details

    • LoadSignFromHallOfFameAction

      public LoadSignFromHallOfFameAction(Sign sign, String introduction, String fametype, int max, boolean ascending)
      creates a new LoadSignFromHallOfFame
      Parameters:
      sign - the sign to modify
      introduction - introduction for the sign
      fametype - type of fame
      max - maximum number of returned characters
      ascending - sort ascending or descending
  • Method Details

    • fire

      public void fire(Player player, Sentence sentence, EventRaiser npc)
      Description copied from interface: PostTransitionAction
      does some action after a transition.
      Specified by:
      fire in interface ChatAction
      Specified by:
      fire in interface PostTransitionAction
      Parameters:
      player - player who caused the transition
      sentence - text he/she said
      npc - the NPC doing the transition
    • setSign

      public void setSign(Sign sign)
      sets the sign to be updated
      Parameters:
      sign - a Sign or null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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