Class CollectRequestedItemsAction
java.lang.Object
games.stendhal.server.entity.npc.action.CollectRequestedItemsAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=OTHER,
label="Item-")
public final class CollectRequestedItemsAction
extends Object
implements ChatAction
handles item lists a player has to bring for a quest
- Author:
- madmetzger
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollectRequestedItemsAction(String itemName, String quest, int position, String questionForMore, String alreadyBrought, ChatAction completionAction, ConversationStates stateAfterCompletion) CollectRequestedItemsAction(String itemName, String quest, String questionForMore, String alreadyBrought, ChatAction completionAction, ConversationStates stateAfterCompletion) create a new CollectRequestedItemsAction -
Method Summary
-
Constructor Details
-
CollectRequestedItemsAction
public CollectRequestedItemsAction(String itemName, String quest, String questionForMore, String alreadyBrought, ChatAction completionAction, ConversationStates stateAfterCompletion) create a new CollectRequestedItemsAction- Parameters:
itemName- name of the item to processquest- the quest to deal withquestionForMore- How shall the affected NPC ask for more brought items?alreadyBrought- What shall the affected NPC say about an already brought item?completionAction- action to execute after the complete list was broughtstateAfterCompletion- state to change to after completion
-
CollectRequestedItemsAction
public CollectRequestedItemsAction(String itemName, String quest, int position, String questionForMore, String alreadyBrought, ChatAction completionAction, ConversationStates stateAfterCompletion)
-
-
Method Details
-
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 saidraiser- the NPC doing the transition
-
hashCode
public int hashCode() -
equals
-
toString
-