Class NPCEmoteAction
java.lang.Object
games.stendhal.server.entity.npc.action.NPCEmoteAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
npc emoting to player
-
Constructor Summary
ConstructorsConstructorDescriptionNPCEmoteAction(String npcAction) Creates a new EmoteAction directed toward the player.NPCEmoteAction(String npcAction, boolean towardPlayer) Creates a new EmoteAction that can optionally be directed toward the player.NPCEmoteAction(String npcAction, String npcActionPost) Creates a new EmoteAction directed toward the player. -
Method Summary
-
Constructor Details
-
NPCEmoteAction
Creates a new EmoteAction directed toward the player.- Parameters:
npcAction- Text to say as emote.
-
NPCEmoteAction
Creates a new EmoteAction that can optionally be directed toward the player.- Parameters:
npcAction- Text to say as emote.towardPlayer-boolean: If, will be directed at player.
-
NPCEmoteAction
Creates a new EmoteAction directed toward the player.- Parameters:
npcAction- Text to say as emote.npcActionPost- Second part of emote text after player name.
-
-
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
-