1package com.runehive.game.world.entity.combat.attack.listener.item;
3import com.runehive.net.packet.out.SendMessage;
4import com.runehive.game.Graphic;
5import com.runehive.game.UpdatePriority;
6import com.runehive.game.world.entity.combat.attack.listener.ItemCombatListenerSignature;
7import com.runehive.game.world.entity.combat.attack.listener.NpcCombatListenerSignature;
8import com.runehive.game.world.entity.combat.attack.listener.SimplifiedListener;
9import com.runehive.game.world.entity.combat.hit.Hit;
10import com.runehive.game.world.entity.mob.Mob;
11import com.runehive.game.world.entity.mob.player.Player;
12import com.runehive.util.Utility;
33 int drain = energy < 50 ? 10 : 20;
40 player.runEnergy = energy;
49 super.hit(attacker, defender,
hit);
Represents a single graphic that can be used by entities.
abstract String getName()
Gets the name of this entity.
Handles the Torag's armor effects to the assigned npc and item ids.
void hit(Mob attacker, Mob defender, Hit hit)
A Hit object holds the damage amount and hitsplat data.
final boolean isPlayer()
Check if an entity is a player.
Optional< Graphic > graphic
This class represents a character controlled by a player.
void send(OutgoingPacket encoder)
The OutgoingPacket that sends a message to a Players chatbox in the client.
Handles miscellaneous methods.
static int random(int bound)
Represents different priorities for updating.
VERY_HIGH
A very high priority.