Package games.stendhal.server.entity.npc.condition

Examples of games.stendhal.server.entity.npc.condition.EmoteCondition


   * make npc's emotion reply on player's emotion
   * @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


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

TOP

Related Classes of games.stendhal.server.entity.npc.condition.EmoteCondition

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.