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

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


    engine.add(ConversationStates.ATTENDING,
        behaviour.getProductionActivity(),
        new SentenceHasErrorCondition(),
        false, ConversationStates.ATTENDING,
        null, new ComplainAboutSentenceErrorAction());

        /* In the behaviour a production activity is defined, e.g. 'cast' or 'mill'
        * and this is used as the trigger to start the production,
        * provided that the NPC is not currently producing for player (not started, is rejected, or is complete) */   
        engine.add(
View Full Code Here


          "I buy " + Grammar.enumerateCollectionPlural(buyerBehaviour.dealtItems()) + ".",
          null);
    }
    engine.add(ConversationStates.ATTENDING, "sell", new SentenceHasErrorCondition(),
        false, ConversationStates.ATTENDING,
        null, new ComplainAboutSentenceErrorAction());

    engine.add(ConversationStates.ATTENDING, "sell",
      new AndCondition(
          new NotCondition(new SentenceHasErrorCondition()),
          new NotCondition(buyerBehaviour.getTransactionCondition())),
View Full Code Here

   
    //sentence was not recognized     
    ChatCondition errorCondition = new SentenceHasErrorCondition();
    engine.add(ConversationStates.ATTENDING, "repair", errorCondition,
        false, ConversationStates.ATTENDING,
        null, new ComplainAboutSentenceErrorAction());
   
    //sentence recognized but not able to repair
    ChatCondition cannotRepair = new AndCondition(
        new NotCondition(new SentenceHasErrorCondition()),
        new NotCondition(repairerBehaviour.getTransactionCondition()));
View Full Code Here

                  + ".", null);
    }

    engine.add(ConversationStates.ATTENDING, "buy", new SentenceHasErrorCondition(),
        false, ConversationStates.ATTENDING,
        null, new ComplainAboutSentenceErrorAction());

    ChatCondition condition = new AndCondition(
      new NotCondition(new SentenceHasErrorCondition()),
      new NotCondition(sellerBehaviour.getTransactionCondition()));
    engine.add(ConversationStates.ATTENDING, "buy", condition,
View Full Code Here

TOP

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

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.