Class InflictStatusOnNPCAction
java.lang.Object
games.stendhal.server.entity.npc.action.InflictStatusOnNPCAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=STATS,
label="Status")
public class InflictStatusOnNPCAction
extends Object
implements ChatAction
inflicts a status on an NPC
- Author:
- hendrik
-
Constructor Summary
ConstructorDescriptionInflictStatusOnNPCAction(Status status)
InflictStatusOnNPCActionInflictStatusOnNPCAction(String itemName)
InflictStatusOnNPCAction -
Method Summary
-
Constructor Details
-
InflictStatusOnNPCAction
InflictStatusOnNPCAction- Parameters:
itemName
- name of item;
-
InflictStatusOnNPCAction
InflictStatusOnNPCAction- Parameters:
status
- status to inflict
-
-
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
-