|
RuneHive-Game
|
This class handles everything related to donators. More...
Public Member Functions | |
| Donation (Player player) | |
| int | getCredits () |
| int | getSpent () |
| void | redeem (DonatorBond bond) |
| void | setCredits (int credits) |
| void | setSpent (int spent) |
| void | updateRank (boolean login) |
Private Attributes | |
| int | credits |
| final Player | player |
| int | spent |
Static Private Attributes | |
| static final Logger | logger = LogManager.getLogger(Donation.class) |
This class handles everything related to donators.
Definition at line 19 of file Donation.java.
| com.runehive.content.donators.Donation.Donation | ( | Player | player | ) |
| int com.runehive.content.donators.Donation.getCredits | ( | ) |
Definition at line 71 of file Donation.java.
References credits.
Referenced by com.runehive.content.store.currency.impl.DonatorPointCurrency.currencyAmount(), com.runehive.content.store.currency.CurrencyType.getValue(), com.runehive.content.dialogue.impl.RoyalKingDialogue.myStats(), com.runehive.content.store.currency.impl.DonatorPointCurrency.recieveCurrency(), redeem(), and com.runehive.content.store.currency.impl.DonatorPointCurrency.takeCurrency().
| int com.runehive.content.donators.Donation.getSpent | ( | ) |
Definition at line 75 of file Donation.java.
References spent.
Referenced by com.runehive.content.dialogue.impl.RoyalKingDialogue.myStats(), and redeem().
| void com.runehive.content.donators.Donation.redeem | ( | DonatorBond | bond | ) |
Definition at line 31 of file Donation.java.
References com.runehive.content.donators.DonatorBond.credits, com.runehive.util.Utility.formatDigits(), com.runehive.util.Utility.formatEnum(), getCredits(), getSpent(), com.runehive.content.donators.DonatorBond.moneySpent, player, com.runehive.game.world.World.sendMessage(), setCredits(), setSpent(), and updateRank().
| void com.runehive.content.donators.Donation.setCredits | ( | int | credits | ) |
Definition at line 79 of file Donation.java.
References credits.
Referenced by com.runehive.content.store.currency.impl.DonatorPointCurrency.recieveCurrency(), redeem(), and com.runehive.content.store.currency.impl.DonatorPointCurrency.takeCurrency().
| void com.runehive.content.donators.Donation.setSpent | ( | int | spent | ) |
Definition at line 83 of file Donation.java.
References spent.
Referenced by redeem().
| void com.runehive.content.donators.Donation.updateRank | ( | boolean | login | ) |
Definition at line 39 of file Donation.java.
References com.runehive.game.world.entity.mob.UpdateFlag.APPEARANCE, com.runehive.game.world.entity.mob.player.PlayerRight.forSpent(), com.runehive.util.Utility.getAOrAn(), com.runehive.game.world.entity.mob.player.PlayerRight.getCrown(), com.runehive.game.world.entity.mob.player.PlayerRight.getName(), com.runehive.game.world.entity.mob.player.PlayerRight.isHelper(), com.runehive.game.world.entity.mob.player.PlayerRight.isIronman(), com.runehive.game.world.entity.mob.player.PlayerRight.isModerator(), player, spent, and com.runehive.content.writer.InterfaceWriter.write().
Referenced by redeem().
|
private |
Definition at line 24 of file Donation.java.
Referenced by getCredits(), and setCredits().
|
staticprivate |
Definition at line 21 of file Donation.java.
|
private |
Definition at line 23 of file Donation.java.
Referenced by Donation(), redeem(), and updateRank().
|
private |
Definition at line 25 of file Donation.java.
Referenced by getSpent(), setSpent(), and updateRank().