Package games.stendhal.server.core.rule

Examples of games.stendhal.server.core.rule.EntityManager


  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildQuicksandArea(zone, attributes);
  }

  private void buildQuicksandArea(final StendhalRPZone zone, final Map<String, String> attributes) {
    final EntityManager manager = SingletonRepository.getEntityManager();

    final Creature creature = new ItemGuardCreature(manager.getCreature("minotaur"), "minotaur key");

    final CreatureRespawnPoint point = new CreatureRespawnPoint(zone, 121, 121, creature, 1);

    zone.add(point);
  }
View Full Code Here


  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildLabyrinth(zone, attributes);
  }

  private void buildLabyrinth(final StendhalRPZone zone, final Map<String, String> attributes) {
    final EntityManager manager = SingletonRepository.getEntityManager();

    final Creature creature = new ItemGuardCreature(manager.getCreature("minotaur king"), "kokuda");

    final CreatureRespawnPoint point = new CreatureRespawnPoint(zone, 58, 55, creature, 1);

    zone.add(point);
  }
View Full Code Here

  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildDrowTunnelArea(zone, attributes);
  }

  private void buildDrowTunnelArea(final StendhalRPZone zone, final Map<String, String> attributes) {
    final EntityManager manager = SingletonRepository.getEntityManager();
    final Creature creature = new ItemGuardCreature(manager.getCreature("thing"), "amulet", "kill_dark_elves", null);
    final CreatureRespawnPoint point = new CreatureRespawnPoint(zone, 32, 5, creature, 1);
    zone.add(point);
  }
View Full Code Here

  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildAssassinIdGuy(zone, attributes);
  }

  private void buildAssassinIdGuy(final StendhalRPZone zone, final Map<String, String> attributes) {
    final EntityManager manager = SingletonRepository.getEntityManager();

    final Creature creature = new ItemGuardCreature(manager.getCreature("disciple assassin"), "assassins id");

    final CreatureRespawnPoint point = new CreatureRespawnPoint(zone, 242, 41, creature, 1);

    zone.add(point);
  }
View Full Code Here

  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildLichPalace(zone, attributes);
  }

  private void buildLichPalace(final StendhalRPZone zone, final Map<String, String> attributes) {
    final EntityManager manager = SingletonRepository.getEntityManager();
    final Creature creature = new ItemGuardCreature(manager.getCreature("demon skeleton"), "lich gold key");

    final CreatureRespawnPoint point = new CreatureRespawnPoint(zone, 54, 48, creature, 1);

    zone.add(point);
  }
View Full Code Here

  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildCastleDungeonArea(zone, attributes);
  }

  private void buildCastleDungeonArea(final StendhalRPZone zone, final Map<String, String> attributes) {
    final EntityManager manager = SingletonRepository.getEntityManager();
    final Creature creature = new ItemGuardCreature(manager.getCreature("green dragon"), "dungeon silver key");
    final CreatureRespawnPoint point = new CreatureRespawnPoint(zone, 69, 43, creature, 1);
    zone.add(point);
  }
View Full Code Here

  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildDrowTunnelArea(zone, attributes);
  }

  private void buildDrowTunnelArea(final StendhalRPZone zone, final Map<String, String> attributes) {
    final EntityManager manager = SingletonRepository.getEntityManager();
    final Creature creature = new ItemGuardCreature(manager.getCreature("vampire lord"), "skull ring", "vs_quest", "start");
    final CreatureRespawnPoint point = new CreatureRespawnPoint(zone, 30, 11, creature, 1);
    zone.add(point);
  }
View Full Code Here

  public void execute(Player admin, List<String> args) {
    if(args.size() != 2) {
      admin.sendPrivateText("Usage: [character] [spell name].");
      return;
    }
    EntityManager em = SingletonRepository.getEntityManager();
    Spell spell = em.getSpell(args.get(1));
    String name = args.get(0);
    Player player = SingletonRepository.getRuleProcessor().getPlayer(name);
    RPSlot slot = player.getSlot("spells");
    ID id = null;
    for(RPObject o : slot) {
View Full Code Here

  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildFourthFloor(zone, attributes);
  }

  private void buildFourthFloor(final StendhalRPZone zone, final Map<String, String> attributes) {
    final EntityManager manager = SingletonRepository.getEntityManager();

    final Creature creature = manager.getCreature("water elemental");
    final Creature creature1 = manager.getCreature("ice elemental");
    final Creature creature2 = manager.getCreature("ice giant");
    final Creature creature3 = manager.getCreature("ice golem");

    creature.setAIProfiles(new HashMap<String, String>());
    creature1.setAIProfiles(new HashMap<String, String>());
    creature2.setAIProfiles(new HashMap<String, String>());
    creature3.setAIProfiles(new HashMap<String, String>())
View Full Code Here

  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildThirdFloor(zone, attributes);
  }

  private void buildThirdFloor(final StendhalRPZone zone, final Map<String, String> attributes) {
    final EntityManager manager = SingletonRepository.getEntityManager();

    final Creature creature = manager.getCreature("fallen warrior");
    final Creature creature1 = manager.getCreature("high lich");
    final Creature creature2 = manager.getCreature("elder skeleton");
    final Creature creature3 = manager.getCreature("fallen high priest");

    creature1.setName("archlich");

    creature.setAIProfiles(new HashMap<String, String>());
    creature1.setAIProfiles(new HashMap<String, String>());
View Full Code Here

TOP

Related Classes of games.stendhal.server.core.rule.EntityManager

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.