Package games.stendhal.server.entity.creature

Examples of games.stendhal.server.entity.creature.Creature


   
    for(CreatureRespawnPoint p:zone.getRespawnPointList()) {
      if(p!=null) {
        if("rat".equals(p.getPrototypeCreature().getName())) {
          // it is a rat, we will remove ai profile of stupid coward
          final Creature creature = p.getPrototypeCreature();
          final Map<String, String> aiProfiles = new HashMap<String, String>(creature.getAIProfiles());
          aiProfiles.remove("stupid coward");
          creature.setAIProfiles(aiProfiles);
        }
      }
    }
  }
View Full Code Here


    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

    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) {
    buildPrisonArea(zone, attributes);
  }

  private void buildPrisonArea(final StendhalRPZone zone, final Map<String, String> attributes) {
    final Creature creature = new ItemGuardCreature(manager.getCreature("duergar king"), "kanmararn prison key");
    final CreatureRespawnPoint point = new CreatureRespawnPoint(zone, 50, 15, creature, 1);
    zone.add(point);
  }
View Full Code Here

    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

     */
    private void killWolves(StendhalRPZone zone) {
      if (Rand.throwCoin() == 1) {
        for (RPObject obj : zone) {
          if (obj instanceof Creature) {
            Creature wolf = (Creature) obj;
           
            if ("wolf".equals(wolf.get("subclass")) && getPen(zone).contains(wolf)) {
                wolf.delayedDamage(wolf.getHP(), "Sato");
                return;
            }
          }
        }
      }
View Full Code Here

  }

  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>())

    creature.clearDropItemList();
    creature1.clearDropItemList();
    creature2.clearDropItemList();
    creature3.clearDropItemList();

    creature.setXP(0);
    creature1.setXP(0);
    creature2.setXP(0);
    creature3.setXP(0);
   
    creature.setPosition(15,28);
    creature1.setPosition(29,15);
    creature2.setPosition(1,15);
    creature3.setPosition(15,2);

    creature.setDirection(Direction.UP);
    creature1.setDirection(Direction.LEFT);
    creature2.setDirection(Direction.RIGHT);
View Full Code Here

  }

  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>());
    creature2.setAIProfiles(new HashMap<String, String>());
    creature3.setAIProfiles(new HashMap<String, String>())

    creature.clearDropItemList();
    creature1.clearDropItemList();
    creature2.clearDropItemList();
    creature3.clearDropItemList();

    creature.setXP(0);
    creature1.setXP(0);
    creature2.setXP(0);
    creature3.setXP(0);
   
    creature.setPosition(15,2);
    creature1.setPosition(1,15);
    creature2.setPosition(15,28);
    creature3.setPosition(29,15);

    creature1.setDirection(Direction.RIGHT);
    creature2.setDirection(Direction.UP);
    creature3.setDirection(Direction.LEFT);

    zone.add(creature);
    zone.add(creature1);
    zone.add(creature2);
    zone.add(creature3);
View Full Code Here

  }

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

    final Creature creature = manager.getCreature("stone golem");
    final Creature creature1 = manager.getCreature("wooden golem");
    final Creature creature2 = manager.getCreature("nymph");
    final Creature creature3 = manager.getCreature("earth elemental");

    creature.setAIProfiles(new HashMap<String, String>());
    creature1.setAIProfiles(new HashMap<String, String>());
    creature2.setAIProfiles(new HashMap<String, String>());
    creature3.setAIProfiles(new HashMap<String, String>());

    creature.clearDropItemList();
    creature1.clearDropItemList();
    creature2.clearDropItemList();
    creature3.clearDropItemList();

    creature.setXP(0);
    creature1.setXP(0);
    creature2.setXP(0);
    creature3.setXP(0);
   
    creature.setPosition(15,28);
    creature1.setPosition(29,15);
    creature2.setPosition(1,15);
    creature3.setPosition(15,2);

    creature.setDirection(Direction.UP);
    creature1.setDirection(Direction.LEFT);
    creature2.setDirection(Direction.RIGHT);
View Full Code Here

  }

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

    final Creature creature = manager.getCreature("air elemental");
    final Creature creature1 = manager.getCreature("madaram windwalker");
    final Creature creature2 = manager.getCreature("djinn");
    final Creature creature3 = manager.getCreature("invisible man");

    creature1.setName("cloudwalker");
    creature2.setName("djinn windmaster");
    creature3.setName("incorporeal man");

    creature.setAIProfiles(new HashMap<String, String>());
    creature1.setAIProfiles(new HashMap<String, String>());
    creature2.setAIProfiles(new HashMap<String, String>());
    creature3.setAIProfiles(new HashMap<String, String>());

    creature.clearDropItemList();
    creature1.clearDropItemList();
    creature2.clearDropItemList();
    creature3.clearDropItemList();

    creature.setXP(0);
    creature1.setXP(0);
    creature2.setXP(0);
    creature3.setXP(0);
   
    creature.setPosition(29,15);
    creature1.setPosition(1,15);
    creature2.setPosition(15,28);
    creature3.setPosition(15,2);

    creature.setDirection(Direction.LEFT);
    creature1.setDirection(Direction.RIGHT);
    creature2.setDirection(Direction.UP);
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.creature.Creature

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.