tubelius

The constructor AutoPrice.APItem(int, float, int, int, int)

Jun 29th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. ...
  2. public class AutoPrice extends JavaPlugin {
  3. public class APItem
  4. {
  5. public int MaterialId;
  6. public float PlSalesPrice;
  7. public int PlSalesTotal;
  8. public int PlPurchasesTotal;
  9. public int TransactionMaxQty;
  10. }
  11. public ArrayList<APItem> APItems = new ArrayList<APItem>();
  12.  
  13. public APItem GetAPItem(int Id) {
  14. for (APItem I : APItems)
  15. {
  16. if (I.MaterialId==Id) { return I; }
  17. }
  18. APItems.add(0,new APItem(0,0,0,0,0));
  19. }
  20. public float GetDefaultPrice() {
  21. return 1;
  22. }
  23. ...
Advertisement
Add Comment
Please, Sign In to add comment