Package games.stendhal.server.entity.creature.impl

Examples of games.stendhal.server.entity.creature.impl.DropItem


        if (range.contains("[")) {
          range = range.replace("[", "");
          range = range.replace("]", "");
          final String[] amount = range.split(",");

          dropsItems.add(new DropItem(tempName, probability,
              Integer.parseInt(amount[0]),
              Integer.parseInt(amount[1])));
        } else {
          dropsItems.add(new DropItem(tempName, probability,
              Integer.parseInt(range)));
        }
      }
    } else if (qName.equals("attributes")) {
      attributes = true;
View Full Code Here


      String line = reader.readLine();
      while (line != null) {
        String[] tok = line.split(";");
        String[] minmax = tok[1].replace("[", "").replace("]", "").split(
            ",");
        dropList.add(new DropItem(tok[0].trim(),
            Double.parseDouble(tok[2].trim()),
            Integer.parseInt(minmax[0].trim()),
            Integer.parseInt(minmax[1].trim())));
        line = reader.readLine();
      }
View Full Code Here

   * @param probability
   * @param min
   * @param max
   */
  public void addDropItem(final String name, final double probability, final int min, final int max) {
    dropsItems.add(new DropItem(name, probability, min, max));
  }
View Full Code Here

   * @param name
   * @param probability
   * @param amount
   */
  public void addDropItem(final String name, final double probability, final int amount) {
    dropsItems.add(new DropItem(name, probability, amount));
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.creature.impl.DropItem

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.