Package games.stendhal.server.core.engine

Examples of games.stendhal.server.core.engine.StendhalRPZone


   */
  @Test
  public void testHiandBye() throws Exception {
    SingletonRepository.getRPWorld();
    final BarMaidNPC barmaidConfigurator = new BarMaidNPC();
    final StendhalRPZone zone = new StendhalRPZone("testzone");
    barmaidConfigurator.configureZone(zone, null);
    final SpeakerNPC barMaid = (SpeakerNPC) zone.getNPCList().get(0);
    assertThat(barMaid.getName(), is("Siandra"));
    final Engine engine = barMaid.getEngine();
    engine.setCurrentState(ConversationStates.IDLE);

    Sentence sentence = new SentenceImplementation(new Expression("hi", ExpressionType.VERB));
View Full Code Here


   */
  @Test
  public void testJobOfferQuest() throws Exception {
    SingletonRepository.getRPWorld();
    final BarMaidNPC barmaidConfigurator = new BarMaidNPC();
    final StendhalRPZone zone = new StendhalRPZone("testzone");
    barmaidConfigurator.configureZone(zone, null);
    final SpeakerNPC barMaid = (SpeakerNPC) zone.getNPCList().get(0);
    assertThat(barMaid.getName(), is("Siandra"));
    final Engine engine = barMaid.getEngine();
    engine.setCurrentState(ConversationStates.ATTENDING);

    Sentence sentence = new SentenceImplementation(new Expression("job", ExpressionType.VERB));
View Full Code Here

  @Test
  public void testBuyerBehaviour() throws Exception {
    SingletonRepository.getRPWorld();

    final BarMaidNPC barmaidConfigurator = new BarMaidNPC();
    final StendhalRPZone zone = new StendhalRPZone("testzone");
    barmaidConfigurator.configureZone(zone, null);
    final SpeakerNPC barMaid = (SpeakerNPC) zone.getNPCList().get(0);
    assertThat(barMaid.getName(), is("Siandra"));
    final Engine engine = barMaid.getEngine();
    engine.setCurrentState(ConversationStates.ATTENDING);

    Sentence sentence = new SentenceImplementation(new Expression("offer", ExpressionType.VERB));
View Full Code Here

  }

  @Before
  public void setUp() {
    final ZoneConfigurator zoneConf = new CloaksCollectorNPC();
    zoneConf.configureZone(new StendhalRPZone("admin_test"), null);
    npc = SingletonRepository.getNPCList().get("Bario");

    final AbstractQuest quest = new CloaksForBario();
    quest.addToWorld();
    en = npc.getEngine();
View Full Code Here

  private LinkedHashMap<String, Integer> slh;
 
  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    MockStendlRPWorld.get();
    StendhalRPZone zone = new StendhalRPZone("admin_test");
    new HealerNPC().configureZone(zone, null);
    new DatabaseFactory().initializeDatabase();
  }
View Full Code Here

 
  @Before
  public void setUp() {
    npc = SingletonRepository.getNPCList().get("Carmen");
    en = npc.getEngine();
    StendhalRPZone srpz = new StendhalRPZone("int_semos_guard_house",100,100);
    SingletonRepository.getRPWorld().addRPZone(srpz);
    player = PlayerTestHelper.createPlayer("bob");
    player.teleport(srpz, 10, 10, null, null);
    sl = ShopList.get();
        slh = (LinkedHashMap<String, Integer>) sl.get("healing");
View Full Code Here

  /**
   * Tests for bailNoDM.
   */
  @Test
  public void testBailNoDM() {
    final StendhalRPZone zone = new StendhalRPZone("zone");
    final AdosDeathmatch adm = new AdosDeathmatch(zone, new Area(zone, 0, 0, 1, 1));
    adm.createNPC("th", 0, 0);
    final SpeakerNPC th = NPCList.get().get("th");
    assertNotNull(th);
    final Engine en = th.getEngine();
View Full Code Here

  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    QuestHelper.setUpBeforeClass();
   
    StendhalRPZone zone = new StendhalRPZone("admin_test");
    new ChefNPC().configureZone(zone, null);
   
    setupZone(ZONE_NAME);
  }
View Full Code Here

  /**
   * Tests for bailDoneDM.
   */
  @Test
  public void testBailDoneDM() {
    final StendhalRPZone zone = new StendhalRPZone("zone");
    final AdosDeathmatch adm = new AdosDeathmatch(zone, new Area(zone, 0, 0, 1, 1));
    adm.createNPC("th", 0, 0);
    final SpeakerNPC th = NPCList.get().get("th");
    assertNotNull(th);
    final Engine en = th.getEngine();
View Full Code Here

  /**
   * Tests for bailStartedDMNOhelmet.
   */
  @Test
  public void testBailStartedDMNOhelmet() {
    final StendhalRPZone zone = new StendhalRPZone("zone");
    final AdosDeathmatch adm = new AdosDeathmatch(zone, new Area(zone, 0, 0, 1, 1));
    adm.createNPC("th", 0, 0);
    final SpeakerNPC th = NPCList.get().get("th");
    assertNotNull(th);
    final Engine en = th.getEngine();
View Full Code Here

TOP

Related Classes of games.stendhal.server.core.engine.StendhalRPZone

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.