Examples of step()


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

    assertEquals("Sorry, I don't sell dogs.", getReply(npc));

    assertTrue(en.step(player, "buy house"));
    assertEquals("Sorry, I don't sell houses.", getReply(npc));

    assertTrue(en.step(player, "buy someunknownthing"));
    assertEquals("Sorry, I don't sell someunknownthings.", getReply(npc));

    assertTrue(en.step(player, "buy a glass of wine"));
    assertEquals("Sorry, I don't sell glasses of wine.", getReply(npc));
View Full Code Here

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

    assertEquals("Sorry, I don't sell houses.", getReply(npc));

    assertTrue(en.step(player, "buy someunknownthing"));
    assertEquals("Sorry, I don't sell someunknownthings.", getReply(npc));

    assertTrue(en.step(player, "buy a glass of wine"));
    assertEquals("Sorry, I don't sell glasses of wine.", getReply(npc));

    assertTrue(en.step(player, "buy a hand full of peace"));
    assertEquals("Sorry, I don't sell hand fulls of peace.", getReply(npc));
View Full Code Here

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

    assertEquals("Sorry, I don't sell someunknownthings.", getReply(npc));

    assertTrue(en.step(player, "buy a glass of wine"));
    assertEquals("Sorry, I don't sell glasses of wine.", getReply(npc));

    assertTrue(en.step(player, "buy a hand full of peace"));
    assertEquals("Sorry, I don't sell hand fulls of peace.", getReply(npc));

    assertTrue(en.step(player, "buy cat"));
    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));
View Full Code Here

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

    assertEquals("Sorry, I don't sell glasses of wine.", getReply(npc));

    assertTrue(en.step(player, "buy a hand full of peace"));
    assertEquals("Sorry, I don't sell hand fulls of peace.", getReply(npc));

    assertTrue(en.step(player, "buy cat"));
    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));

    assertTrue(en.step(player, "no"));
    assertEquals("Ok, how else may I help you?", getReply(npc));
View Full Code Here

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

    assertEquals("Sorry, I don't sell hand fulls of peace.", getReply(npc));

    assertTrue(en.step(player, "buy cat"));
    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));

    assertTrue(en.step(player, "no"));
    assertEquals("Ok, how else may I help you?", getReply(npc));

    assertTrue(en.step(player, "buy cat"));
    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));
View Full Code Here

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

    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));

    assertTrue(en.step(player, "no"));
    assertEquals("Ok, how else may I help you?", getReply(npc));

    assertTrue(en.step(player, "buy cat"));
    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));

    assertTrue(en.step(player, "yes"));
    assertEquals("You don't seem to have enough money.", getReply(npc));
View Full Code Here

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

    assertEquals("Ok, how else may I help you?", getReply(npc));

    assertTrue(en.step(player, "buy cat"));
    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));

    assertTrue(en.step(player, "yes"));
    assertEquals("You don't seem to have enough money.", getReply(npc));

    assertTrue(en.step(player, "buy two cats"));
    assertEquals("2 cats will cost 200. Do you want to buy them?", getReply(npc));
View Full Code Here

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

    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));

    assertTrue(en.step(player, "yes"));
    assertEquals("You don't seem to have enough money.", getReply(npc));

    assertTrue(en.step(player, "buy two cats"));
    assertEquals("2 cats will cost 200. Do you want to buy them?", getReply(npc));

    assertTrue(en.step(player, "yes"));
    assertEquals("Hmm... I just don't think you're cut out for taking care of more than one cat at once.", getReply(npc));
View Full Code Here

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

    assertEquals("You don't seem to have enough money.", getReply(npc));

    assertTrue(en.step(player, "buy two cats"));
    assertEquals("2 cats will cost 200. Do you want to buy them?", getReply(npc));

    assertTrue(en.step(player, "yes"));
    assertEquals("Hmm... I just don't think you're cut out for taking care of more than one cat at once.", getReply(npc));

    // equip with enough money to buy the cat
    assertTrue(equipWithMoney(player, 500));
    assertTrue(en.step(player, "buy cat"));
View Full Code Here

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

    assertTrue(en.step(player, "yes"));
    assertEquals("Hmm... I just don't think you're cut out for taking care of more than one cat at once.", getReply(npc));

    // equip with enough money to buy the cat
    assertTrue(equipWithMoney(player, 500));
    assertTrue(en.step(player, "buy cat"));
    assertEquals("A cat will cost 100. Do you want to buy it?", getReply(npc));

    assertFalse(player.hasPet());

    assertTrue(en.step(player, "yes"));
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.