|
RuneHive-Game
|
Public Member Functions | |
| void | addQuantity (Player player, int amount) |
| void | addToAmountSold (int amountSold) |
| void | checkAndUpdate (Player player) |
| int | getAmountLeft () |
| int | getAmountSold () |
| int | getInitialQuantity () |
| int | getItemId () |
| int | getPrice () |
| String | getSeller () |
| void | removeQuantity (Player player, int amount) |
| void | setAmountSold (int amountSold) |
| void | setInitialQuantity (int initialQuantity) |
| void | setPrice (int price) |
| void | setPrice (Player player, int price) |
| void | setQuantity (Player player, int quantity) |
| TradingPostListing (int itemId, String seller) | |
Private Attributes | |
| int | amountSold = 0 |
| int | initialQuantity = 1 |
| final int | itemId |
| int | price |
| final String | seller |
Definition at line 6 of file TradingPostListing.java.
| com.runehive.content.tradingpost.TradingPostListing.TradingPostListing | ( | int | itemId, |
| String | seller ) |
Definition at line 13 of file TradingPostListing.java.
| void com.runehive.content.tradingpost.TradingPostListing.addQuantity | ( | Player | player, |
| int | amount ) |
Definition at line 60 of file TradingPostListing.java.
References checkAndUpdate(), and initialQuantity.
| void com.runehive.content.tradingpost.TradingPostListing.addToAmountSold | ( | int | amountSold | ) |
Definition at line 82 of file TradingPostListing.java.
References amountSold.
| void com.runehive.content.tradingpost.TradingPostListing.checkAndUpdate | ( | Player | player | ) |
Definition at line 65 of file TradingPostListing.java.
References com.runehive.game.world.items.containers.ItemContainer.computeAmountForId(), initialQuantity, com.runehive.game.world.entity.mob.player.Player.inventory, itemId, com.runehive.game.world.entity.mob.player.Player.tradingPost, com.runehive.content.tradingpost.TradingPost.updatePriceStrings(), and com.runehive.content.tradingpost.TradingPost.updateQuantityString().
Referenced by addQuantity(), and setQuantity().
| int com.runehive.content.tradingpost.TradingPostListing.getAmountLeft | ( | ) |
Definition at line 74 of file TradingPostListing.java.
References amountSold, and initialQuantity.
Referenced by com.runehive.content.tradingpost.TradingPost.handleDismissListingButton(), com.runehive.content.tradingpost.TradingPost.sort(), and com.runehive.content.tradingpost.TradingPost.updateBuyingPageWidgets().
| int com.runehive.content.tradingpost.TradingPostListing.getAmountSold | ( | ) |
Definition at line 78 of file TradingPostListing.java.
References amountSold.
Referenced by com.runehive.content.tradingpost.TradingPost.updateExistingListingsWidgets().
| int com.runehive.content.tradingpost.TradingPostListing.getInitialQuantity | ( | ) |
Definition at line 22 of file TradingPostListing.java.
References initialQuantity.
Referenced by com.runehive.content.tradingpost.TradingPost.updateExistingListingsWidgets().
| int com.runehive.content.tradingpost.TradingPostListing.getItemId | ( | ) |
Definition at line 18 of file TradingPostListing.java.
References itemId.
Referenced by com.runehive.content.tradingpost.TradingPost.handleDismissListingButton(), and com.runehive.content.tradingpost.TradingPost.updateBuyingPageWidgets().
| int com.runehive.content.tradingpost.TradingPostListing.getPrice | ( | ) |
Definition at line 34 of file TradingPostListing.java.
References price.
Referenced by com.runehive.content.tradingpost.TradingPost.sort(), and com.runehive.content.tradingpost.TradingPost.updateBuyingPageWidgets().
| String com.runehive.content.tradingpost.TradingPostListing.getSeller | ( | ) |
Definition at line 47 of file TradingPostListing.java.
References seller.
Referenced by com.runehive.content.tradingpost.TradingPost.updateBuyingPageWidgets().
| void com.runehive.content.tradingpost.TradingPostListing.removeQuantity | ( | Player | player, |
| int | amount ) |
Definition at line 51 of file TradingPostListing.java.
References initialQuantity, com.runehive.game.world.entity.mob.player.Player.tradingPost, com.runehive.content.tradingpost.TradingPost.updatePriceStrings(), and com.runehive.content.tradingpost.TradingPost.updateQuantityString().
| void com.runehive.content.tradingpost.TradingPostListing.setAmountSold | ( | int | amountSold | ) |
Definition at line 86 of file TradingPostListing.java.
References amountSold.
| void com.runehive.content.tradingpost.TradingPostListing.setInitialQuantity | ( | int | initialQuantity | ) |
Definition at line 94 of file TradingPostListing.java.
References initialQuantity.
Referenced by com.runehive.content.tradingpost.TradingPost.testData().
| void com.runehive.content.tradingpost.TradingPostListing.setPrice | ( | int | price | ) |
Definition at line 90 of file TradingPostListing.java.
References price.
| void com.runehive.content.tradingpost.TradingPostListing.setPrice | ( | Player | player, |
| int | price ) |
Definition at line 38 of file TradingPostListing.java.
References initialQuantity, price, com.runehive.game.world.entity.mob.player.Player.send(), com.runehive.game.world.entity.mob.player.Player.tradingPost, and com.runehive.content.tradingpost.TradingPost.updatePriceStrings().
Referenced by com.runehive.content.tradingpost.TradingPost.testData().
| void com.runehive.content.tradingpost.TradingPostListing.setQuantity | ( | Player | player, |
| int | quantity ) |
Definition at line 26 of file TradingPostListing.java.
References checkAndUpdate().
|
private |
Definition at line 9 of file TradingPostListing.java.
Referenced by addToAmountSold(), getAmountLeft(), getAmountSold(), and setAmountSold().
|
private |
Definition at line 11 of file TradingPostListing.java.
Referenced by addQuantity(), checkAndUpdate(), getAmountLeft(), getInitialQuantity(), removeQuantity(), setInitialQuantity(), and setPrice().
|
private |
Definition at line 7 of file TradingPostListing.java.
Referenced by checkAndUpdate(), getItemId(), and TradingPostListing().
|
private |
Definition at line 10 of file TradingPostListing.java.
Referenced by getPrice(), setPrice(), and setPrice().
|
private |
Definition at line 8 of file TradingPostListing.java.
Referenced by getSeller(), and TradingPostListing().