Package games.stendhal.server.entity.item

Examples of games.stendhal.server.entity.item.Money


  public static boolean canPlayerAffordTradingFee(Player player, int price) {
    BigDecimal fee = calculateFee(player, price);
    List<Item> allEquipped = player.getAllEquipped("money");
    int ownedMoney = 0;
    for(Item item : allEquipped) {
      Money m = (Money) item;
      ownedMoney += m.getQuantity();
    }
    return fee.intValue() <= ownedMoney;
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.item.Money

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.