Class NPCEmoteAction

java.lang.Object
games.stendhal.server.entity.npc.action.NPCEmoteAction
All Implemented Interfaces:
ChatAction, PostTransitionAction

@Dev(category=CHAT, label="NPC") public class NPCEmoteAction extends Object implements ChatAction
npc emoting to player
  • Constructor Details

    • NPCEmoteAction

      public NPCEmoteAction(String npcAction)
      Creates a new EmoteAction directed toward the player.
      Parameters:
      npcAction - Text to say as emote.
    • NPCEmoteAction

      public NPCEmoteAction(String npcAction, boolean towardPlayer)
      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

      public NPCEmoteAction(String npcAction, String npcActionPost)
      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