Package games.stendhal.server.core.engine

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


    // teleport
    npc.add(ConversationStates.ATTENDING, Arrays.asList("teleport",
        "teleportme"), new AdminCondition(), ConversationStates.IDLE,
        null, new TeleportNPCAction(sandbox));

    final StendhalRPWorld world = SingletonRepository.getRPWorld();
    npc.add(ConversationStates.ATTENDING, Arrays.asList("sightseeing",
        "memory", "memoryhole"), new AdminCondition(),
        ConversationStates.IDLE, null, new SightseeingAction(sandbox,
            world));
  }
View Full Code Here


  private Player admin;
  private int badnessThreshold = 1;
 
  @Override
  public void execute(final Player admin, final List<String> args) {
    StendhalRPWorld world = SingletonRepository.getRPWorld();
    this.admin = admin;
   
    entity = new Entity() {
      // anon subclass to allow instantiation.
    };
View Full Code Here

    SingletonRepository.getTurnNotifier().notifyInTurns(60, new PeriodicOpener());
  }

  @Override
  protected boolean isAllowed(final RPEntity user) {
    final StendhalRPWorld world = SingletonRepository.getRPWorld();
    final StendhalRPZone zone = world.getZone(super.getDestinationZone());
    return (zone.getPlayerAndFriends().size() == 0);
  }
View Full Code Here

   */
  @Override
  public void execute(Player admin, List<String> args) {
    super.execute(admin, args);
    TurnNotifier.get().dontNotify(this);
    StendhalRPWorld world = SingletonRepository.getRPWorld();
    zone = world.getZone("int_semos_bank");
    pathArea = new Area(zone, 32, 7, 35, 7);
    tablePathArea = new Area(zone, 35, 2, 40, 8);
    TurnNotifier.get().notifyInSeconds(CHECK_INTERVAL, this);
  }
View Full Code Here

 
  /**
   * Create the script and initialize the list of zones
   */
  public ContMoveAndStrengthenOnlinePlayers() {
    StendhalRPWorld rpWorld = SingletonRepository.getRPWorld();
    for (IRPZone irpZone : rpWorld) {
      StendhalRPZone irpZone2 = (StendhalRPZone) irpZone;
      if (!irpZone2.getName().startsWith("int")) {
        zones.add(irpZone2);
      }
View Full Code Here

    new DatabaseFactory().initializeDatabase();
    npc = new SpeakerNPC("maerion");
    npcEngine = npc.getEngine();
    SingletonRepository.getNPCList().add(npc);
    final StendhalRPZone zone = new StendhalRPZone("int_semos_guard_house");
    final StendhalRPWorld world = MockStendlRPWorld.get();
    world.addRPZone(zone);
    quest.addToWorld();
  }
View Full Code Here

  @Override
  public void execute(Player admin, List<String> args) {
    super.execute(admin, args);
    TurnNotifier.get().dontNotify(this);

    StendhalRPWorld world = SingletonRepository.getRPWorld();

    // bank entrance
    keepFreeAreas.add(new KeepFreeArea(new Area(world.getZone("0_semos_city"), 17, 23, 3, 2), 23, 25));

    // bank exit
    keepFreeAreas.add(new KeepFreeArea(new Area(world.getZone("int_semos_bank"), 8, 28, 11, 29), 24, 27));

    // inn entrance
    keepFreeAreas.add(new KeepFreeArea(new Area(world.getZone("0_semos_city"), 40, 38, 4, 3), 50, 40));

    // inn exit
    keepFreeAreas.add(new KeepFreeArea(new Area(world.getZone("int_semos_tavern_0"), 21, 15, 3, 2), 22, 11));

    TurnNotifier.get().notifyInSeconds(CHECK_INTERVAL, this);
  }
View Full Code Here

 
  /**
   * Create the script and initialize the list of zones
   */
  public MoveAndStrengthenOnlinePlayers() {
    StendhalRPWorld rpWorld = SingletonRepository.getRPWorld();
    for (IRPZone irpZone : rpWorld) {
      StendhalRPZone irpZone2 = (StendhalRPZone) irpZone;
      if (!irpZone2.getName().startsWith("int")) {
        zones.add(irpZone2);
      }
View Full Code Here

public class CountObjects extends ScriptImpl {

  @Override
  public void execute(final Player admin, final List<String> args) {
    int count = 0;
    final StendhalRPWorld world = SingletonRepository.getRPWorld();
    for (final IRPZone irpZone : world) {
      final StendhalRPZone zone = (StendhalRPZone) irpZone;
      final Iterator<RPObject> itr2 = zone.iterator();
      while (itr2.hasNext()) {
        itr2.next();
View Full Code Here

   */
  private final Map<String, Double> rarity = new HashMap<String, Double>();

  @Override
  public void execute(final Player admin, final List<String> args) {
    final StendhalRPWorld world = SingletonRepository.getRPWorld();
    for (final IRPZone irpZone : world) {
      final StendhalRPZone zone = (StendhalRPZone) irpZone;
      for (CreatureRespawnPoint point : zone.getRespawnPointList()) {
        CountCreature creature = new CountCreature(point.getPrototypeCreature());
        processCreature(creature);
View Full Code Here

TOP

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

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.