|
RuneHive-Game
|
This class handles emotes from the emote tab and skill cape. More...
Static Public Member Functions | |
| static boolean | contains (Player player, EmoteUnlockable emote) |
| static boolean | containsAll (Player player, EmoteUnlockable... emotes) |
| static void | refresh (Player player) |
| Handles refreshing the emote tab. | |
| static EmoteUnlockable | selectRandom (Player player, EmoteUnlockable... emotes) |
| static void | unlock (Player player, EmoteUnlockable emote) |
| Handles unlocking an emote. | |
| static void | unlockAll (Player player) |
| Handles unlocking all the emotes. | |
| static void | updateSkillcape (Player player) |
| Updates the skillcape emote. | |
This class handles emotes from the emote tab and skill cape.
Definition at line 20 of file EmoteHandler.java.
|
static |
Definition at line 58 of file EmoteHandler.java.
References com.runehive.game.world.entity.mob.player.Player.emoteUnlockable.
Referenced by containsAll(), and selectRandom().
|
static |
Definition at line 62 of file EmoteHandler.java.
References contains().
Referenced by com.runehive.content.itemaction.impl.DrillDemonBox.inventory(), and com.runehive.content.itemaction.impl.MimeBox.inventory().
|
static |
Handles refreshing the emote tab.
| player | The player refreshing the emote tab. |
Definition at line 28 of file EmoteHandler.java.
References com.runehive.game.world.entity.mob.player.Player.send(), and updateSkillcape().
Referenced by com.runehive.content.itemaction.impl.DrillDemonBox.inventory(), com.runehive.content.itemaction.impl.MimeBox.inventory(), com.runehive.game.world.entity.mob.player.PlayerAssistant.login(), unlock(), and unlockAll().
|
static |
Definition at line 71 of file EmoteHandler.java.
References contains(), and com.runehive.util.Utility.randomElement().
Referenced by com.runehive.content.itemaction.impl.DrillDemonBox.inventory(), and com.runehive.content.itemaction.impl.MimeBox.inventory().
|
static |
Handles unlocking an emote.
| player | the player unlocking the emote. |
| emote | The emote being activated. |
Definition at line 89 of file EmoteHandler.java.
References com.runehive.game.world.entity.mob.player.Player.emoteUnlockable, com.runehive.util.Utility.formatEnum(), refresh(), and com.runehive.game.world.entity.mob.player.Player.send().
|
static |
Handles unlocking all the emotes.
| player | The player unlocking all the emotes. |
Definition at line 103 of file EmoteHandler.java.
References com.runehive.game.world.entity.mob.player.Player.emoteUnlockable, refresh(), and com.runehive.game.world.entity.mob.player.Player.send().
|
static |
Updates the skillcape emote.
| player | The player instance. |
Definition at line 44 of file EmoteHandler.java.
References com.runehive.game.world.items.containers.equipment.Equipment.CAPE_SLOT, com.runehive.game.world.entity.mob.player.Player.equipment, com.runehive.content.emote.Skillcape.forId(), com.runehive.game.world.items.containers.ItemContainer.get(), com.runehive.game.world.items.Item.getId(), and com.runehive.game.world.entity.mob.player.Player.send().
Referenced by refresh().