Example #1
0
 public GrandExchangeOffer(
     int item,
     int quantity,
     String owner,
     int index,
     int pricePerItem,
     int box,
     int amountFinished,
     int coinsCollect,
     int itemCollect,
     int failedAttempts,
     OfferType type,
     int updateStateOrdinal) {
   super(item, quantity);
   this.owner = owner;
   this.index = index;
   this.pricePerItem = pricePerItem;
   this.box = box;
   this.amountFinished = amountFinished;
   this.coinsCollect = coinsCollect;
   this.itemCollect = itemCollect;
   this.failedAttempts = failedAttempts;
   this.updateState =
       updateStateOrdinal == -1 ? null : GrandExchangeSlotState.forId(updateStateOrdinal);
   this.type = type;
   this.totalCost = GrandExchange.calculateTotalCost(pricePerItem, quantity);
 }
Example #2
0
 public GrandExchangeOffer(
     int item, int quantity, String owner, int index, int pricePerItem, int box, OfferType type) {
   super(item, quantity);
   this.owner = owner;
   this.index = index;
   this.pricePerItem = pricePerItem;
   this.type = type;
   this.box = box;
   this.totalCost = GrandExchange.calculateTotalCost(pricePerItem, quantity);
 }