Examples of behave()


Examples of com.sun.jini.test.share.TestParticipant.behave()

            }
            cr = TransactionFactory.create(mgr, Lease.FOREVER);
            part.setBehavior(OP_JOIN);
            part.setBehavior(OP_TIMEOUT_PREPARE);
            part.setBehavior(OP_VOTE_ABORTED);
            part.behave(cr.transaction);
            cr.transaction.commit();
      throw new TestException("CannotCommitException is not raised");
       } catch (CannotCommitException cce) {
            cce.printStackTrace();
View Full Code Here

Examples of com.sun.jini.test.share.TestParticipant.behave()

        part.setBehavior(EXCEPTION_REMOTE);       
        logger.log(Level.INFO, "Configured participant to throw RE 1st");               
        part.setBehavior(EXCEPTION_TRANSACTION);
        logger.log(Level.INFO, "Configured participant to throw UTE 2nd");                               
        logger.log(Level.INFO, "Configuring participant to behave");
        part.behave(cr.transaction);
        Clearer clearer = new Clearer(part);
        Thread t = new Thread(clearer);
        logger.log(Level.INFO, "Running clearer thread");                       
        t.start();
        logger.log(Level.INFO, "Committing transaction");                       
View Full Code Here

Examples of com.sun.jini.test.share.TestParticipant.behave()

        part.setBehavior(EXCEPTION_REMOTE);       
        logger.log(Level.INFO, "Configured participant to throw RE 1st");               
        part.setBehavior(EXCEPTION_TRANSACTION);
        logger.log(Level.INFO, "Configured participant to throw UTE 2nd");                               
        logger.log(Level.INFO, "Configuring participant to behave");
        part.behave(cr.transaction);
        Clearer clearer = new Clearer(part);
        Thread t = new Thread(clearer);
        logger.log(Level.INFO, "Running clearer thread");                       
        t.start();
        logger.log(Level.INFO, "Committing transaction");                       
View Full Code Here

Examples of games.stendhal.server.core.scripting.ScriptingNPC.behave()

    //
    npc.add(ConversationStates.IDLE, Arrays.asList("hi", "hello",
        "greetings", "hola"), null, ConversationStates.IDLE,
        "My mom said, i am not allowed to talk to strangers.", null);
    npc.behave("bye", "Bye.");

    // Greating and admins may enable or disable her
    npc.add(ConversationStates.IDLE, Arrays.asList("hi", "hello",
        "greetings", "hola"), new AdminCondition(),
        ConversationStates.ATTENDING,
View Full Code Here

Examples of games.stendhal.server.core.scripting.ScriptingNPC.behave()

//    npc.add(ConversationStates.QUESTION_1, SpeakerNPC.YES_MESSAGES, new AdminCondition(),
//        ConversationStates.ATTENDING, null, new DebuggeraEnablerAction(true));
//    npc.add(ConversationStates.QUESTION_1, ConversationPhrases.NO_MESSAGES, new AdminCondition(),
//        ConversationStates.ATTENDING, null, new DebuggeraEnablerAction(false));

    npc.behave(Arrays.asList("insane", "crazy", "mad"),
        "Why are you so mean? I AM NOT INSANE. My mummy says, I am a #special child.");
    npc.behave(
        Arrays.asList("special", "special child"),
        "I can see another world in my dreams. That are more thans dreams. There the people are sitting in front of machines called computers. This are realy strange people. They cannot use telepathy without something they call inter-network. But these people and machines are somehow connected to our world. If I concentrate, I can #change thinks in our world.");
    // npc.behave("verschmelzung", "\r\nYou have one hand,\r\nI have the
View Full Code Here

Examples of games.stendhal.server.core.scripting.ScriptingNPC.behave()

//    npc.add(ConversationStates.QUESTION_1, ConversationPhrases.NO_MESSAGES, new AdminCondition(),
//        ConversationStates.ATTENDING, null, new DebuggeraEnablerAction(false));

    npc.behave(Arrays.asList("insane", "crazy", "mad"),
        "Why are you so mean? I AM NOT INSANE. My mummy says, I am a #special child.");
    npc.behave(
        Arrays.asList("special", "special child"),
        "I can see another world in my dreams. That are more thans dreams. There the people are sitting in front of machines called computers. This are realy strange people. They cannot use telepathy without something they call inter-network. But these people and machines are somehow connected to our world. If I concentrate, I can #change thinks in our world.");
    // npc.behave("verschmelzung", "\r\nYou have one hand,\r\nI have the
    // other.\r\nPut them together,\r\nWe have each other.");
    npc.add(
View Full Code Here

Examples of games.stendhal.server.core.scripting.ScriptingNPC.behave()

    // Set zone and position
    npc.setPosition(x, y);
    sandbox.add(npc);

    // Create Dialog
    npc.behave("greet", "Hi, how can I help you?");
    npc.behave(
        "job",
        "I am one of the bar maids at Semos' #tavern and doing outside services. We sell fine beers and food.");
    npc.behave("tavern",
//      "I have a #coupon for a free beer in Semos' tavern. "+
View Full Code Here

Examples of games.stendhal.server.core.scripting.ScriptingNPC.behave()

    npc.setPosition(x, y);
    sandbox.add(npc);

    // Create Dialog
    npc.behave("greet", "Hi, how can I help you?");
    npc.behave(
        "job",
        "I am one of the bar maids at Semos' #tavern and doing outside services. We sell fine beers and food.");
    npc.behave("tavern",
//      "I have a #coupon for a free beer in Semos' tavern. "+
      "It is on the left side of the temple.");
View Full Code Here

Examples of games.stendhal.server.core.scripting.ScriptingNPC.behave()

    // Create Dialog
    npc.behave("greet", "Hi, how can I help you?");
    npc.behave(
        "job",
        "I am one of the bar maids at Semos' #tavern and doing outside services. We sell fine beers and food.");
    npc.behave("tavern",
//      "I have a #coupon for a free beer in Semos' tavern. "+
      "It is on the left side of the temple.");
    npc.behave("help",
        "You can see what I #offer and take a break to meet new people!");
    npc.behave("bye", "Bye bye!");
View Full Code Here

Examples of games.stendhal.server.core.scripting.ScriptingNPC.behave()

        "job",
        "I am one of the bar maids at Semos' #tavern and doing outside services. We sell fine beers and food.");
    npc.behave("tavern",
//      "I have a #coupon for a free beer in Semos' tavern. "+
      "It is on the left side of the temple.");
    npc.behave("help",
        "You can see what I #offer and take a break to meet new people!");
    npc.behave("bye", "Bye bye!");
    try {
      npc.behave("sell", SingletonRepository.getShopList().get(shop));
    } catch (final NoSuchMethodException e) {
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.