Package games.stendhal.server.entity.creature

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


    for (int i = 80; i < 100; i++) {
      creat = new Creature();
      creat.setLevel(i);
      creatureList.add(creat);
    }
    Collections.sort(creatureList, new LevelBasedComparator());
    for (int level = 0; level < 120; level++) {
      assertThat("1 rat in list", dmqpick.pickIdealCreature(level, false, creatureList).getLevel(),
          lessThanOrEqualTo(level + 5));
    }
View Full Code Here


    for (Creature creature : creatures) {
      if (!creature.isRare() && !creature.getName().equals(excludedCreature)) {
        sortedcreatures.add(creature);
      }
    }
    Collections.sort(sortedcreatures, new LevelBasedComparator());
 
View Full Code Here

    for (Creature creature : creatures) {
      if (!creature.isRare()) {
        sortedCreatures.add(creature);
      }
    }
    Collections.sort(sortedCreatures, new LevelBasedComparator());
  }
View Full Code Here

TOP

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

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.