Package games.stendhal.server.entity.mapstuff.portal

Examples of games.stendhal.server.entity.mapstuff.portal.Portal.onUsed()


    // jump back to the quest start state
    player.setQuest(questSlot, questStarted);
    // solve the maze
    Portal portal = maze.getPortal();
    player.setPosition(portal.getX(), portal.getY());
    portal.onUsed(player);
    assertTrue(PlayerTestHelper.getPrivateReply(player).matches("You used 0 seconds to solve the maze. That was worth [0-9]+ points."));
    assertEquals("done", player.getQuest(questSlot, 0));
  }
}
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.