Class StartRecordingRandomItemCollectionAction
java.lang.Object
games.stendhal.server.entity.npc.action.StartRecordingRandomItemCollectionAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=ITEMS_OWNED,
label="State")
public class StartRecordingRandomItemCollectionAction
extends Object
implements ChatAction
Start recording random item collection request.
For a quest to use this it needs the list of items with their quantities as a Map<String, Integer>
-
Constructor Summary
ConstructorsConstructorDescriptionStartRecordingRandomItemCollectionAction(String questname, int index, Map<String, Integer> items, String message) Creates a new StartRecordingRandomItemCollectionAction.StartRecordingRandomItemCollectionAction(String questname, Map<String, Integer> items, String message) Creates a new StartRecordingRandomItemCollectionAction. -
Method Summary
-
Constructor Details
-
StartRecordingRandomItemCollectionAction
public StartRecordingRandomItemCollectionAction(String questname, Map<String, Integer> items, String message) Creates a new StartRecordingRandomItemCollectionAction.- Parameters:
questname- name of quest-slot to changeitems- List of items to select from, with quantitymessage- Message which NPC asks for items with. We add the item name and quantity to end of message.
-
StartRecordingRandomItemCollectionAction
@Dev public StartRecordingRandomItemCollectionAction(String questname, @Dev(defaultValue="1") int index, Map<String, Integer> items, String message) Creates a new StartRecordingRandomItemCollectionAction.- Parameters:
questname- name of quest-slot to changeindex- index of sub stateitems- List of items name and quantity to selectmessage- Message which NPC asks for items with. We add the item name and quantity to end of message.
-
-
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
-
toString
-
hashCode
public int hashCode() -
equals
-