Class StoreMessageAction
java.lang.Object
games.stendhal.server.entity.npc.action.StoreMessageAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=CHAT,
label="Message")
public class StoreMessageAction
extends Object
implements ChatAction
Stores a message for delivery with postman
- Author:
- kymara
-
Constructor Summary
ConstructorDescriptionStoreMessageAction(String npcName, String message)
creates a new StoreMessageAction -
Method Summary
-
Constructor Details
-
StoreMessageAction
creates a new StoreMessageAction- Parameters:
npcName
- who left the messagemessage
- what the message is
-
-
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
-