Package games.stendhal.server.core.config

Examples of games.stendhal.server.core.config.CreatureGroupsXMLLoader.load()


    loader.load();

    final Map<String, Integer> count = new HashMap<String, Integer>();

    final CreatureGroupsXMLLoader creatureLoader = new CreatureGroupsXMLLoader("/data/conf/creatures.xml");
    final List<DefaultCreature> creatures = creatureLoader.load();

    for (final DefaultCreature c : creatures) {
      count.put(c.getCreatureName(), 0);
    }
View Full Code Here


    updateFrameContents();
  }

  private List<DefaultCreature> loadCreaturesList(String ref) {
    CreatureGroupsXMLLoader loader = new CreatureGroupsXMLLoader(ref);
    List<DefaultCreature> creatures = loader.load();
    sortCreatures(creatures);

    return creatures;
  }
View Full Code Here

   */
  private void buildCreatureTables() {
    classToCreature = new LowerCaseMap<DefaultCreature>();

    final CreatureGroupsXMLLoader loader = new CreatureGroupsXMLLoader("/data/conf/creatures.xml");
    final List<DefaultCreature> creatures = loader.load();

    for (final DefaultCreature creature : creatures) {
      final String id = creature.getTileId();
      final String clazz = creature.getCreatureName();

View Full Code Here

public class GenerateBestiaryAndItems {

  public static void generateCreatures() throws Exception {
    final CreatureGroupsXMLLoader loader = new CreatureGroupsXMLLoader("/data/conf/creatures.xml");
    final List<DefaultCreature> creatures = loader.load();

    Collections.sort(creatures, new Comparator<DefaultCreature>() {

      public int compare(final DefaultCreature o1, final DefaultCreature o2) {
        return o1.getLevel() - o2.getLevel();
View Full Code Here

  private static Player player;

  public static void main(final String[] args) throws Exception {
    new RPClassGenerator().createRPClasses();
    final CreatureGroupsXMLLoader loader = new CreatureGroupsXMLLoader("/data/conf/creatures.xml");
    final List<DefaultCreature> creatures = loader.load();

    Collections.sort(creatures, new Comparator<DefaultCreature>() {

      public int compare(final DefaultCreature o1, final DefaultCreature o2) {
        return o1.getLevel() - o2.getLevel();
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.