Class RepairingBehaviourAction
java.lang.Object
games.stendhal.server.entity.npc.action.RepairingBehaviourAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
Behaviour action for repairing npcs
- Author:
- madmetzger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RepairerBehaviourprotected final Stringprotected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfire(Player player, Sentence sentence, EventRaiser npc) does some action after a transition.voidfireRequestError(ItemParserResult res, Player player, Sentence sentence, EventRaiser npc) The user input was parsed as valid Sentence, but could not transformed into a Behaviour request.voidfireRequestOK(ItemParserResult res, Player player, Sentence sentence, EventRaiser npc) The user input was parsed as a behaviour request.voidfireSentenceError(Player player, Sentence sentence, EventRaiser npc) The user input could not be parsed in a valid Sentence.inthashCode()
-
Field Details
-
behaviour
-
userAction
-
npcAction
-
-
Constructor Details
-
RepairingBehaviourAction
-
-
Method Details
-
fireRequestOK
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
Description copied from interface:PostTransitionActiondoes some action after a transition.- Specified by:
firein interfaceChatAction- Specified by:
firein interfacePostTransitionAction- Parameters:
player- player who caused the transitionsentence- text he/she saidnpc- the NPC doing the transition
-
fireSentenceError
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() -
equals
-