1package com.runehive.game.world.entity.combat.strategy.player.special.range;
3import com.runehive.content.achievement.AchievementHandler;
4import com.runehive.content.achievement.AchievementKey;
5import com.runehive.game.Animation;
6import com.runehive.game.Graphic;
7import com.runehive.game.Projectile;
8import com.runehive.game.UpdatePriority;
9import com.runehive.game.world.entity.combat.hit.CombatHit;
10import com.runehive.game.world.entity.combat.hit.Hit;
11import com.runehive.game.world.entity.combat.projectile.CombatProjectile;
12import com.runehive.game.world.entity.combat.strategy.player.PlayerRangedStrategy;
13import com.runehive.game.world.entity.mob.Mob;
14import com.runehive.game.world.entity.mob.player.Player;
15import com.runehive.game.world.items.Item;
17import static com.runehive.game.world.items.containers.equipment.Equipment.ARROWS_SLOT;
31 }
catch (Exception e) {
41 super.sendStuff(attacker, defender);
48 super.hit(attacker, defender,
hit);
Class that models a single animation used by an entity.
A wrapper for a Hit object, adding additional variables for hit and hitsplat delays.
A Hit object holds the damage amount and hitsplat data.
void setAccurate(boolean accurate)
int getDamage()
Gets the damage amount.
void setDamage(int damage)
Sets the hit damage.
static CombatProjectile getDefinition(String name)
final CombatHit nextRangedHit(T attacker, Mob defender)
Animation getAttackAnimation(Player attacker, Mob defender)
static final DragonKnife INSTANCE
void hit(Player attacker, Mob defender, Hit hit)
void sendStuff(Player attacker, Mob defender)
CombatHit[] getHits(Player attacker, Mob defender)
static CombatProjectile PROJECTILE
This class represents a character controlled by a player.