Class StartItemsCollectionWithLimitAction
java.lang.Object
games.stendhal.server.entity.npc.action.StartItemsCollectionWithLimitAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
For quests that use collections with random quantities for each item.
- Author:
- AntumDeluge
-
Constructor Summary
ConstructorDescriptionStartItemsCollectionWithLimitAction(String quest, int index, List<String> items, int limit)
Creates a new StartItemsCollectionWithLimitsAction.StartItemsCollectionWithLimitAction(String quest, List<String> items, int limit)
Creates a new StartItemsCollectionWithLimitsAction. -
Method Summary
-
Constructor Details
-
StartItemsCollectionWithLimitAction
Creates a new StartItemsCollectionWithLimitsAction.- Parameters:
quest
- Quest slot nameitems
- List of items requiredlimit
- The sum of all items
-
StartItemsCollectionWithLimitAction
Creates a new StartItemsCollectionWithLimitsAction.- Parameters:
quest
- Quest slot nameindex
- index of sub stateitems
- List of items requiredlimit
- The sum of all items
-
-
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 saidnpc
- the NPC doing the transition
-
hashCode
public int hashCode() -
equals
-