Class RepairingBehaviourAction

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

@Dev(category=IGNORE) public class RepairingBehaviourAction extends Object
Behaviour action for repairing npcs
Author:
madmetzger
  • Field Details

    • behaviour

      protected final RepairerBehaviour behaviour
    • userAction

      protected final String userAction
    • npcAction

      protected final String npcAction
  • Constructor Details

    • RepairingBehaviourAction

      public RepairingBehaviourAction(RepairerBehaviour repairerBehaviour)
  • Method Details

    • fireRequestOK

      public void fireRequestOK(ItemParserResult res, Player player, Sentence sentence, EventRaiser npc)
      The user input was parsed as a behaviour request. fireRequestOK() should check the request and execute an action as appropriate.
    • fireRequestError

      public void fireRequestError(ItemParserResult res, Player player, Sentence sentence, EventRaiser npc)
      The user input was parsed as valid Sentence, but could not transformed into a Behaviour request. fireRequestError() should inform the player about the problem.
    • 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
    • fireSentenceError

      public void fireSentenceError(Player player, Sentence sentence, EventRaiser npc)
      The user input could not be parsed in a valid Sentence. fireSentenceError() should inform the player about the problem.
      Parameters:
      player -
      sentence -
      npc -
    • hashCode

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

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