1package com.runehive.game.world.entity.combat.strategy.player.special.range;
3import com.runehive.game.Animation;
4import com.runehive.game.Graphic;
5import com.runehive.game.Projectile;
6import com.runehive.game.UpdatePriority;
7import com.runehive.game.world.entity.combat.hit.CombatHit;
8import com.runehive.game.world.entity.combat.projectile.CombatProjectile;
9import com.runehive.game.world.entity.combat.strategy.player.PlayerRangedStrategy;
10import com.runehive.game.world.entity.mob.Mob;
11import com.runehive.game.world.entity.mob.player.Player;
29 }
catch (Exception e) {
52 return roll - roll / 4;
57 throw new NullPointerException(
"No Magic Shortbow projectile found.");
Class that models a single animation used by an entity.
Represents a single graphic that can be used by entities.
A wrapper for a Hit object, adding additional variables for hit and hitsplat delays.
static CombatProjectile getDefinition(String name)
final CombatHit nextRangedHit(T attacker, Mob defender)
CombatHit[] getHits(Player attacker, Mob defender)
static void setProjectiles(CombatProjectile projectile)
static Projectile PROJECTILE_1
static final Animation ANIMATION
static final MagicShortbow INSTANCE
void sendStuff(Player attacker, Mob defender)
int modifyAccuracy(Player attacker, Mob defender, int roll)
static Projectile PROJECTILE_2
void animate(int animation)
Optional< Graphic > graphic
This class represents a character controlled by a player.
Represents different priorities for updating.