|
RuneHive-Game
|
Handles the achievements. More...
Static Public Member Functions | |
| static void | activate (Player player, AchievementKey achievement) |
| Activates the achievement for the individual player. | |
| static void | activate (Player player, AchievementKey achievement, int increase) |
| Activates the achievement for the individual player. | |
| static void | completeAll (Player player) |
| Completes all the achievements for player (used for administrative purposes). | |
| static boolean | completed (Player player, AchievementList achievement) |
| Checks if the reward is completed. | |
| static boolean | completedAll (Player player) |
| Checks if a player has completed all the available achievements. | |
| static int | getColor (Player player, AchievementType difficulty) |
| static int | getDifficultyAchievement (AchievementType difficulty) |
| Handles getting the amount of achievements based on the difficulty. | |
| static int | getDifficultyCompletion (Player player, AchievementType difficulty) |
| Handles getting the amount of achievements completed based on it's difficulty. | |
| static int | getTotalCompleted (Player player) |
| Gets the total amount of achievements completed. | |
| static void | set (Player player, AchievementKey achievement, int increase) |
Static Package Functions | |
| static int | getDifficultyAmount (AchievementType difficulty) |
Handles the achievements.
Definition at line 13 of file AchievementHandler.java.
|
static |
Activates the achievement for the individual player.
Increments the completed amount for the player. If the player has completed the achievement, they will receive their reward.
Definition at line 20 of file AchievementHandler.java.
References activate().
Referenced by activate(), com.runehive.content.skill.impl.slayer.Slayer.activate(), com.runehive.game.world.entity.skill.SkillManager.addExperience(), com.runehive.content.combat.Killstreak.announce(), com.runehive.content.triviabot.TriviaBot.answered(), com.runehive.content.skill.impl.woodcutting.WoodcuttingAction.chop(), com.runehive.game.service.VoteService.claimReward(), com.runehive.content.skill.impl.runecrafting.Runecraft.clickObject(), com.runehive.game.world.entity.mob.player.PlayerDeath.death(), com.runehive.game.world.entity.mob.npc.drop.NpcDropManager.drop(), com.runehive.content.skill.impl.magic.spell.SpellCasting.enchant(), com.runehive.content.skill.impl.magic.spell.impl.HighAlchemy.execute(), com.runehive.content.activity.impl.kraken.KrakenActivity.finish(), com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlNode.finish(), com.runehive.content.activity.impl.VorkathActivity.finish(), com.runehive.game.action.impl.TutorialActivity.finish(), com.runehive.content.skill.impl.fletching.Fletching.fletch(), com.runehive.content.activity.impl.barrows.BarrowsUtility.generateRewards(), com.runehive.game.world.entity.mob.npc.drop.NpcDropManager.handleBoneCrusher(), com.runehive.game.world.entity.mob.npc.drop.NpcDropManager.handleMessages(), com.runehive.game.world.entity.mob.npc.drop.NpcDropManager.handleMiscDrops(), com.runehive.game.world.entity.combat.strategy.player.special.melee.AncientGodsword.hitsplat(), com.runehive.game.world.entity.combat.strategy.player.special.melee.ArmadylGodsword.hitsplat(), com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonMace.hitsplat(), com.runehive.content.skill.impl.mining.MiningAction.mine(), com.runehive.content.skill.impl.herblore.Herblore.mix(), com.runehive.game.action.impl.ChestAction.onCancel(), com.runehive.game.action.impl.BuryBoneAction.onExecute(), com.runehive.game.world.entity.combat.attack.listener.item.DharokListener.onKill(), com.runehive.game.world.entity.combat.strategy.player.special.melee.AncientGodsword.onKill(), com.runehive.game.world.entity.combat.strategy.player.special.melee.ArmadylGodsword.onKill(), com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonDagger.onKill(), com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonMace.onKill(), com.runehive.game.world.entity.combat.strategy.player.special.melee.GraniteMaul.onKill(), com.runehive.game.world.entity.combat.strategy.player.special.range.DarkBow.onKill(), com.runehive.content.pet.Pets.onSpawn(), com.runehive.game.world.entity.mob.npc.NpcDeath.postDeath(), com.runehive.content.skill.impl.agility.obstacle.ObstacleInteraction.rewards(), com.runehive.game.world.entity.skill.SkillManager.updateSkill(), and com.runehive.content.preset.PresetManager.upload().
|
static |
Activates the achievement for the individual player.
Increments the completed amount for the player. If the player has completed the achievement, they will receive their reward.
Definition at line 29 of file AchievementHandler.java.
References com.runehive.game.world.items.containers.bank.BankVault.add(), com.runehive.game.world.entity.mob.player.Player.bankVault, com.runehive.game.world.items.containers.bank.VaultCurrency.BLOOD_MONEY, com.runehive.game.world.entity.mob.player.Player.playerAchievements, and com.runehive.game.world.entity.mob.player.Player.send().
|
static |
Completes all the achievements for player (used for administrative purposes).
Definition at line 60 of file AchievementHandler.java.
References completedAll(), com.runehive.game.world.entity.mob.player.Player.playerAchievements, and com.runehive.game.world.entity.mob.player.Player.send().
|
static |
Checks if the reward is completed.
Definition at line 74 of file AchievementHandler.java.
References com.runehive.game.world.entity.mob.player.Player.playerAchievements.
Referenced by getDifficultyCompletion(), and getTotalCompleted().
|
static |
Checks if a player has completed all the available achievements.
Definition at line 123 of file AchievementHandler.java.
References com.runehive.content.achievement.AchievementList.getTotal(), and getTotalCompleted().
Referenced by completeAll(), and com.runehive.net.packet.in.WieldItemPacketListener.handlePacket().
|
static |
Definition at line 93 of file AchievementHandler.java.
References getDifficultyAmount(), and getDifficultyCompletion().
Referenced by com.runehive.content.achievement.AchievementWriter.AchievementWriter().
|
static |
Handles getting the amount of achievements based on the difficulty.
Definition at line 114 of file AchievementHandler.java.
|
staticpackage |
Definition at line 89 of file AchievementHandler.java.
References com.runehive.content.achievement.AchievementList.asList().
Referenced by com.runehive.content.achievement.AchievementWriter.AchievementWriter(), and getColor().
|
static |
Handles getting the amount of achievements completed based on it's difficulty.
Definition at line 104 of file AchievementHandler.java.
References completed(), and com.runehive.game.world.entity.mob.player.Player.playerAchievements.
Referenced by com.runehive.content.achievement.AchievementWriter.AchievementWriter(), and getColor().
|
static |
Gets the total amount of achievements completed.
Definition at line 81 of file AchievementHandler.java.
References completed(), and com.runehive.game.world.entity.mob.player.Player.playerAchievements.
Referenced by com.runehive.content.achievement.AchievementWriter.AchievementWriter(), completedAll(), and com.runehive.content.ProfileViewer.string().
|
static |
Definition at line 44 of file AchievementHandler.java.
References com.runehive.game.world.items.containers.bank.VaultCurrency.BLOOD_MONEY.
Referenced by com.runehive.game.world.entity.skill.SkillManager.updateSkill().