Examples of NPCEmoteAction


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

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

   * @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

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

   * @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
Copyright © 2018 www.massapi.com. 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.