|
RuneHive-Game
|
Handles the prestige class. More...
Public Member Functions | |
| boolean | activatePerk (Item item) |
| Activates the perk. | |
| int | getColor (int tier) |
| Gets the prestige color based on the tier. | |
| int | getPrestigeColor (int skill) |
| Gets the current prestige color of the player. | |
| int | getPrestigePoint () |
| boolean | hasPerk (PrestigePerk perk) |
| void | open () |
| Opens the prestige panel. | |
| void | perkInformation () |
| Displays all the perk information. | |
| Prestige (Player player) | |
Constructs a new Prestige. | |
| void | prestige (PrestigeData data) |
| Handles prestiging the skill. | |
| void | setPrestigePoint (int prestigePoint) |
Public Attributes | |
| Set< PrestigePerk > | activePerks = new HashSet<>() |
| The set of all the active perks for the player. | |
| int[] | prestige = new int[Skill.SKILL_COUNT] |
| The prestiges. | |
| int | totalPrestige |
| The total amount of prestiges. | |
Private Member Functions | |
| String | getColorInterface (int tier) |
| Gets the prestige color based on the tier for the itemcontainer. | |
Private Attributes | |
| final Player | player |
| The player instance. | |
| int | prestigePoint |
| The prestige points. | |
Static Private Attributes | |
| static final String | COLOR = "<col=354CE6>" |
Handles the prestige class.
Definition at line 24 of file Prestige.java.
| com.runehive.content.prestige.Prestige.Prestige | ( | Player | player | ) |
Constructs a new Prestige.
Definition at line 44 of file Prestige.java.
References player.
| boolean com.runehive.content.prestige.Prestige.activatePerk | ( | Item | item | ) |
Activates the perk.
Definition at line 94 of file Prestige.java.
References activePerks, com.runehive.util.MessageColor.DARK_BLUE, com.runehive.content.prestige.PrestigePerk.forItem(), com.runehive.game.world.items.Item.getId(), com.runehive.content.prestige.PrestigePerk.name, and player.
| int com.runehive.content.prestige.Prestige.getColor | ( | int | tier | ) |
Gets the prestige color based on the tier.
Definition at line 122 of file Prestige.java.
Referenced by getColorInterface(), and getPrestigeColor().
|
private |
Gets the prestige color based on the tier for the itemcontainer.
Definition at line 140 of file Prestige.java.
References getColor().
Referenced by open().
| int com.runehive.content.prestige.Prestige.getPrestigeColor | ( | int | skill | ) |
Gets the current prestige color of the player.
Definition at line 117 of file Prestige.java.
References getColor(), and prestige.
Referenced by com.runehive.net.packet.out.SendSkill.encode(), and com.runehive.content.ProfileViewer.open().
| int com.runehive.content.prestige.Prestige.getPrestigePoint | ( | ) |
Definition at line 144 of file Prestige.java.
References prestigePoint.
Referenced by com.runehive.content.store.currency.impl.PrestigePointCurrency.currencyAmount(), com.runehive.content.store.currency.CurrencyType.getValue(), com.runehive.content.store.currency.impl.PrestigePointCurrency.recieveCurrency(), and com.runehive.content.store.currency.impl.PrestigePointCurrency.takeCurrency().
| boolean com.runehive.content.prestige.Prestige.hasPerk | ( | PrestigePerk | perk | ) |
Definition at line 112 of file Prestige.java.
References activePerks.
Referenced by com.runehive.content.skill.impl.firemaking.Firemaking.bonfireAction(), com.runehive.content.skill.impl.woodcutting.BirdsNest.drop(), com.runehive.content.skill.impl.fishing.FishingAction.fish(), com.runehive.content.skill.impl.firemaking.FiremakingAction.onDestruct(), perkInformation(), and com.runehive.game.world.entity.combat.strategy.player.PlayerRangedStrategy.removeAmmunition().
| void com.runehive.content.prestige.Prestige.open | ( | ) |
Opens the prestige panel.
Definition at line 49 of file Prestige.java.
References getColorInterface(), player, prestige, prestigePoint, totalPrestige, and com.runehive.content.prestige.PrestigeData.values.
Referenced by prestige().
| void com.runehive.content.prestige.Prestige.perkInformation | ( | ) |
Displays all the perk information.
Definition at line 74 of file Prestige.java.
References com.runehive.content.prestige.PrestigePerk.description, com.runehive.content.prestige.PrestigePerk.forId(), hasPerk(), com.runehive.content.prestige.PrestigePerk.name, player, and com.runehive.content.prestige.PrestigePerk.values.
| void com.runehive.content.prestige.Prestige.prestige | ( | PrestigeData | data | ) |
Handles prestiging the skill.
Definition at line 58 of file Prestige.java.
References com.runehive.game.world.entity.skill.Skill.getExperienceForLevel(), com.runehive.game.world.entity.skill.Skill.getName(), open(), player, prestige, prestigePoint, com.runehive.game.world.World.sendMessage(), com.runehive.content.prestige.PrestigeData.skill, and totalPrestige.
| void com.runehive.content.prestige.Prestige.setPrestigePoint | ( | int | prestigePoint | ) |
Definition at line 148 of file Prestige.java.
References prestigePoint.
Referenced by com.runehive.content.store.currency.impl.PrestigePointCurrency.recieveCurrency(), and com.runehive.content.store.currency.impl.PrestigePointCurrency.takeCurrency().
| Set<PrestigePerk> com.runehive.content.prestige.Prestige.activePerks = new HashSet<>() |
The set of all the active perks for the player.
Definition at line 41 of file Prestige.java.
Referenced by activatePerk(), and hasPerk().
|
staticprivate |
Definition at line 28 of file Prestige.java.
|
private |
The player instance.
Definition at line 27 of file Prestige.java.
Referenced by activatePerk(), open(), perkInformation(), Prestige(), and prestige().
| int [] com.runehive.content.prestige.Prestige.prestige = new int[Skill.SKILL_COUNT] |
The prestiges.
Definition at line 38 of file Prestige.java.
Referenced by getPrestigeColor(), open(), prestige(), and com.runehive.game.service.HighscoreService.saveHighscores().
|
private |
The prestige points.
Definition at line 35 of file Prestige.java.
Referenced by getPrestigePoint(), open(), prestige(), and setPrestigePoint().
| int com.runehive.content.prestige.Prestige.totalPrestige |
The total amount of prestiges.
Definition at line 32 of file Prestige.java.
Referenced by open(), prestige(), com.runehive.game.service.HighscoreService.saveHighscores(), and com.runehive.game.world.entity.skill.SkillManager.updateSkill().