Examples of stepTest()


Examples of games.stendhal.server.entity.npc.fsm.Engine.stepTest()

    final Player pl = PlayerTestHelper.createPlayer("player");

    // set previous quest to done
    pl.setQuest("weapons_collector", "done");

    assertTrue(en.stepTest(pl, ConversationPhrases.GREETING_MESSAGES.get(0)));
    assertEquals(
        "Greetings, old friend. If you are willing, I have another #quest for you.",
        getReply(npc));

    assertTrue(en.stepTest(pl, ConversationPhrases.QUEST_MESSAGES.get(0)));
View Full Code Here

Examples of games.stendhal.server.entity.npc.fsm.Engine.stepTest()

    assertTrue(en.stepTest(pl, ConversationPhrases.GREETING_MESSAGES.get(0)));
    assertEquals(
        "Greetings, old friend. If you are willing, I have another #quest for you.",
        getReply(npc));

    assertTrue(en.stepTest(pl, ConversationPhrases.QUEST_MESSAGES.get(0)));
    assertEquals(
        "Recent adventurers to these parts describe strange new creatures with weapons"
            + " I have never seen. Would you fight these creatures and bring their weapons to me?",
        getReply(npc));
    en.stepTest(pl, "no");
View Full Code Here

Examples of games.stendhal.server.entity.npc.fsm.Engine.stepTest()

    assertTrue(en.stepTest(pl, ConversationPhrases.QUEST_MESSAGES.get(0)));
    assertEquals(
        "Recent adventurers to these parts describe strange new creatures with weapons"
            + " I have never seen. Would you fight these creatures and bring their weapons to me?",
        getReply(npc));
    en.stepTest(pl, "no");
    assertEquals("Well, maybe someone else will happen by and help me.",
        getReply(npc));
  }

  @Test
View Full Code Here

Examples of games.stendhal.server.entity.npc.fsm.Engine.stepTest()

    final Player pl = PlayerTestHelper.createPlayer("player");

    // set previous quest to done
    pl.setQuest("weapons_collector", "done");

    assertTrue(en.stepTest(pl, "hello"));
    assertEquals(
        "Greetings, old friend. If you are willing, I have another #quest for you.",
        getReply(npc));

    assertTrue(en.stepTest(pl, "quest"));
View Full Code Here

Examples of games.stendhal.server.entity.npc.fsm.Engine.stepTest()

    assertTrue(en.stepTest(pl, "hello"));
    assertEquals(
        "Greetings, old friend. If you are willing, I have another #quest for you.",
        getReply(npc));

    assertTrue(en.stepTest(pl, "quest"));
    assertEquals(
        "Recent adventurers to these parts describe strange new creatures with weapons"
            + " I have never seen. Would you fight these creatures and bring their weapons to me?",
        getReply(npc));
View Full Code Here

Examples of games.stendhal.server.entity.npc.fsm.Engine.stepTest()

    assertEquals(
        "Recent adventurers to these parts describe strange new creatures with weapons"
            + " I have never seen. Would you fight these creatures and bring their weapons to me?",
        getReply(npc));

    assertTrue(en.stepTest(pl, ConversationPhrases.YES_MESSAGES.get(0)));
    assertEquals(
        "Wonderful. Now, the #list is small but the risk may be great. If you return safely, I have another reward for you.",
        getReply(npc));

    assertTrue(en.stepTest(pl, "list"));
View Full Code Here

Examples of games.stendhal.server.entity.npc.fsm.Engine.stepTest()

    assertTrue(en.stepTest(pl, ConversationPhrases.YES_MESSAGES.get(0)));
    assertEquals(
        "Wonderful. Now, the #list is small but the risk may be great. If you return safely, I have another reward for you.",
        getReply(npc));

    assertTrue(en.stepTest(pl, "list"));
    assertEquals(
        "There are 3 weapons still missing from my newest collection: #'morning star', #staff, and #'great sword'."
            + " Do you have anything like that with you?",
        getReply(npc));
View Full Code Here

Examples of games.stendhal.server.entity.npc.fsm.Engine.stepTest()

    assertEquals(
        "There are 3 weapons still missing from my newest collection: #'morning star', #staff, and #'great sword'."
            + " Do you have anything like that with you?",
        getReply(npc));

    assertTrue(en.stepTest(pl, "no"));
    assertEquals("Let me know as soon as you find them. Farewell.",
        getReply(npc));

    // start another conversation
    assertTrue(en.stepTest(pl, "hi"));
View Full Code Here

Examples of games.stendhal.server.entity.npc.fsm.Engine.stepTest()

    assertTrue(en.stepTest(pl, "no"));
    assertEquals("Let me know as soon as you find them. Farewell.",
        getReply(npc));

    // start another conversation
    assertTrue(en.stepTest(pl, "hi"));
    assertEquals(
        "Welcome back. I hope you have come to help me with my latest #list of weapons.",
        getReply(npc));

    assertTrue(en.stepTest(pl, "list"));
View Full Code Here

Examples of games.stendhal.server.entity.npc.fsm.Engine.stepTest()

    assertTrue(en.stepTest(pl, "hi"));
    assertEquals(
        "Welcome back. I hope you have come to help me with my latest #list of weapons.",
        getReply(npc));

    assertTrue(en.stepTest(pl, "list"));
    assertEquals(
        "There are 3 weapons still missing from my newest collection: #'morning star', #staff, and #'great sword'."
            + " Do you have anything like that with you?",
        getReply(npc));
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.