Package games.stendhal.server.entity.npc.action

Examples of games.stendhal.server.entity.npc.action.NPCEmoteAction


   * @param playerAction - what player doing with npc
   * @param npcAction - npc's emotion reply on player's emotion
   */
  public void addEmotionReply(final String playerAction, final String npcAction) {
    add(ConversationStates.IDLE, Arrays.asList("!me "), new EmoteCondition(playerAction),
        ConversationStates.IDLE, null, new NPCEmoteAction(npcAction));
    add(ConversationStates.ATTENDING, Arrays.asList("!me "), new EmoteCondition(playerAction),
        ConversationStates.ATTENDING, null, new NPCEmoteAction(npcAction));
  }
View Full Code Here


   * @param triggerStrings - player's keywords for npc emotion
   * @param npcAction - npc's emotion
   */
  public void addEmotion(final Collection<String> triggerStrings, final String npcAction) {
    add(ConversationStates.IDLE, triggerStrings,
        ConversationStates.IDLE, null, new NPCEmoteAction(npcAction));
    add(ConversationStates.ATTENDING, triggerStrings,
        ConversationStates.ATTENDING, null, new NPCEmoteAction(npcAction));

  }
View Full Code Here

   * @param trigger - player's keywords for npc emotion
   * @param npcAction - npc's emotion
   */
  public void addEmotion(final String trigger, final String npcAction) {
    add(ConversationStates.IDLE, Arrays.asList(trigger),
        ConversationStates.IDLE, null, new NPCEmoteAction(npcAction));
    add(ConversationStates.ATTENDING, Arrays.asList(trigger),
        ConversationStates.ATTENDING, null, new NPCEmoteAction(npcAction));
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.action.NPCEmoteAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.