|
RuneHive-Game
|
Handles the skulling class. More...
Public Member Functions | |
| void | checkForSkulling (Player opponent) |
| Checks if player requires a skull upon attacking another player. | |
| SkullHeadIconType | getHeadIconType () |
| Gets the skull icon. | |
| SkullRemoveTask | getSkullRemoveTask () |
| boolean | isSkulled () |
| void | skull () |
| void | skull (Player attacking, SkullHeadIconType icon) |
| Skulls the player and deposit's the attacked player into the list. | |
| void | skull (SkullHeadIconType icon) |
| Skulling (Player player) | |
Constructs a new Skulling | |
| void | unskull () |
| Unskulls the player. | |
Private Attributes | |
| final List< String > | attacked = new LinkedList<>() |
| All the other player's this entity has attacked. | |
| SkullHeadIconType | icon = SkullHeadIconType.NO_SKULL |
| Their skull icon identification. | |
| Player | player |
| The player of this class. | |
| SkullRemoveTask | skullRemoveTask |
Handles the skulling class.
Definition at line 18 of file Skulling.java.
| com.runehive.content.combat.Skulling.Skulling | ( | Player | player | ) |
Constructs a new Skulling class.
| player | The player instance. |
Definition at line 36 of file Skulling.java.
References player.
| void com.runehive.content.combat.Skulling.checkForSkulling | ( | Player | opponent | ) |
Checks if player requires a skull upon attacking another player.
| opponent | The opponent. |
Definition at line 46 of file Skulling.java.
References attacked, com.runehive.game.world.entity.mob.player.Player.getName(), player, skull(), com.runehive.game.world.entity.mob.player.Player.skulling, and com.runehive.content.combat.SkullHeadIconType.WHITE_SKULL.
| SkullHeadIconType com.runehive.content.combat.Skulling.getHeadIconType | ( | ) |
Gets the skull icon.
Definition at line 115 of file Skulling.java.
References icon.
Referenced by com.runehive.net.packet.out.SendPlayerUpdate.appendAppearanceMask().
| SkullRemoveTask com.runehive.content.combat.Skulling.getSkullRemoveTask | ( | ) |
Definition at line 106 of file Skulling.java.
References skullRemoveTask.
| boolean com.runehive.content.combat.Skulling.isSkulled | ( | ) |
Definition at line 88 of file Skulling.java.
References skullRemoveTask.
Referenced by com.runehive.game.world.entity.combat.effect.impl.CombatSkullEffect.apply(), com.runehive.game.world.entity.mob.player.PlayerDeath.calculateDropItems(), com.runehive.game.world.entity.combat.effect.impl.CombatSkullEffect.onLogin(), com.runehive.content.ItemsKeptOnDeath.open(), com.runehive.game.world.entity.combat.effect.impl.CombatSkullEffect.removeOn(), and unskull().
| void com.runehive.content.combat.Skulling.skull | ( | ) |
Definition at line 55 of file Skulling.java.
References player, skull(), and com.runehive.content.combat.SkullHeadIconType.WHITE_SKULL.
Referenced by com.runehive.game.world.entity.combat.effect.impl.CombatSkullEffect.apply(), checkForSkulling(), skull(), and skull().
| void com.runehive.content.combat.Skulling.skull | ( | Player | attacking, |
| SkullHeadIconType | icon ) |
Skulls the player and deposit's the attacked player into the list.
| attacking |
Definition at line 68 of file Skulling.java.
References com.runehive.game.world.entity.mob.UpdateFlag.APPEARANCE, attacked, com.runehive.game.world.entity.mob.player.Player.getName(), icon, com.runehive.game.world.entity.mob.Mob.inActivity(), com.runehive.content.lms.LMSGame.inGameArea(), player, com.runehive.game.world.World.schedule(), com.runehive.Config.SKULL_TIME, and skullRemoveTask.
| void com.runehive.content.combat.Skulling.skull | ( | SkullHeadIconType | icon | ) |
Definition at line 59 of file Skulling.java.
References icon, player, and skull().
| void com.runehive.content.combat.Skulling.unskull | ( | ) |
Unskulls the player.
Definition at line 95 of file Skulling.java.
References com.runehive.game.world.entity.mob.UpdateFlag.APPEARANCE, attacked, icon, isSkulled(), com.runehive.content.combat.SkullHeadIconType.NO_SKULL, player, and skullRemoveTask.
Referenced by com.runehive.game.world.entity.combat.effect.impl.CombatSkullEffect.removeOn().
|
private |
All the other player's this entity has attacked.
Definition at line 21 of file Skulling.java.
Referenced by checkForSkulling(), skull(), and unskull().
|
private |
Their skull icon identification.
Definition at line 27 of file Skulling.java.
Referenced by getHeadIconType(), skull(), skull(), and unskull().
|
private |
The player of this class.
Definition at line 24 of file Skulling.java.
Referenced by checkForSkulling(), skull(), skull(), skull(), Skulling(), and unskull().
|
private |
Definition at line 29 of file Skulling.java.
Referenced by getSkullRemoveTask(), isSkulled(), skull(), and unskull().