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:
SayRequiredItemsFromCollectionAction
-
Constructor Summary
ConstructorDescriptionCollectRequestedItemsAction(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
-
-
Method Details
-
fire
Description copied from interface:PostTransitionAction
does some action after a transition.- Specified by:
fire
in interfaceChatAction
- Specified by:
fire
in interfacePostTransitionAction
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidraiser
- the NPC doing the transition
-
hashCode
public int hashCode() -
equals
-
toString
-