Package games.stendhal.server.maps

Examples of games.stendhal.server.maps.MockStendhalRPRuleProcessor


  }

  @Test
  public void alterQuestActionPerform() throws Exception {
    final Player bob = PlayerTestHelper.createPlayer("bob");
    final MockStendhalRPRuleProcessor rules = MockStendhalRPRuleProcessor.get();
    rules.addPlayer(bob);
    final RPAction action = new RPAction();
    action.put("type", "alterquest");
    action.put("target", "bob");
    action.put("name", "questname");
    action.put("state", "queststate");
View Full Code Here


  @Test
  public void alterQuestActionPerformTarget() throws Exception {

    final Player bob = PlayerTestHelper.createPlayer("bob");
    final Player james = PlayerTestHelper.createPlayer("james");
    final MockStendhalRPRuleProcessor rules = MockStendhalRPRuleProcessor.get();
    rules.addPlayer(james);
    final RPAction action = new RPAction();
    action.put("type", "alterquest");
    action.put("target", "james");
    action.put("name", "questname");
    action.put("state", "queststate");
View Full Code Here

    MockStendhalRPRuleProcessor.get().clearPlayers();
  }

  @Before
  public void setup() {
    final MockStendhalRPRuleProcessor processor = MockStendhalRPRuleProcessor
        .get();

    final StendhalRPZone zone = new StendhalRPZone("testzone");
    SingletonRepository.getRPWorld().addRPZone(zone);

    final Player player1 = PlayerTestHelper.createPlayer("player1");
    processor.addPlayer(player1);
    zone.add(player1);

    final Player player2 = PlayerTestHelper.createPlayer("player2");
    processor.addPlayer(player2);
    zone.add(player2);

    final NPC npc = new SpeakerNPC("npc");
    zone.add(npc);
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.maps.MockStendhalRPRuleProcessor

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.