Class EquipRandomItemAction
java.lang.Object
games.stendhal.server.entity.npc.action.EquipRandomItemAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=ITEMS_OWNED,
label="Item+")
public class EquipRandomItemAction
extends Object
implements ChatAction
Chooses and equips the specified item from a list
-
Constructor Summary
ConstructorsConstructorDescriptionEquipRandomItemAction(String itemlist, boolean bind, String text) Creates a new EquipRandomItemAction.EquipRandomItemAction(Map<String, Integer> items, boolean bind, String text) Creates a new EquipRandomItemAction. -
Method Summary
-
Constructor Details
-
EquipRandomItemAction
Creates a new EquipRandomItemAction.- Parameters:
items- items and quantitiesbind- bind to playertext- text to say
-
EquipRandomItemAction
Creates a new EquipRandomItemAction.- Parameters:
itemlist- items and quantities as a String item=q1;item2=q2bind- bind to playertext- text to say
-
-
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 saidnpc- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-