1package com.runehive.game.world.entity.combat.attack.listener.npc.dragon;
3import com.runehive.game.world.entity.combat.CombatType;
4import com.runehive.game.world.entity.combat.CombatUtil;
5import com.runehive.game.world.entity.combat.attack.FightType;
6import com.runehive.game.world.entity.combat.attack.listener.NpcCombatListenerSignature;
7import com.runehive.game.world.entity.combat.attack.listener.SimplifiedListener;
8import com.runehive.game.world.entity.combat.hit.CombatHit;
9import com.runehive.game.world.entity.combat.hit.Hit;
10import com.runehive.game.world.entity.combat.strategy.CombatStrategy;
11import com.runehive.game.world.entity.combat.strategy.npc.NpcMeleeStrategy;
12import com.runehive.game.world.entity.combat.strategy.npc.impl.DragonfireStrategy;
13import com.runehive.game.world.entity.mob.Mob;
14import com.runehive.game.world.entity.mob.npc.Npc;
16import static com.runehive.game.world.entity.combat.CombatUtil.createStrategyArray;
17import static com.runehive.game.world.entity.combat.CombatUtil.getHitDelay;
18import static com.runehive.game.world.entity.combat.CombatUtil.randomStrategy;
19import static com.runehive.game.world.entity.combat.projectile.CombatProjectile.getDefinition;
39 }
catch(Exception e) {
49 return attacker.
getStrategy().canAttack(attacker, defender);
63 super(getDefinition(
"Metalic dragonfire"));
A collection of util methods and constants related to combat.
static CombatHit generateDragonfire(Mob attacker, Mob defender, int max, boolean prayer)
CombatHit[] getHits(Npc attacker, Mob defender)
int getAttackDistance(Npc attacker, FightType fightType)
A wrapper for a Hit object, adding additional variables for hit and hitsplat delays.
A Hit object holds the damage amount and hitsplat data.
boolean withinDistance(T attacker, Mob defender)
static NpcMeleeStrategy get()
DragonfireStrategy(CombatProjectile projectileDefinition)
Represents a non-player character in the in-game world.
void setStrategy(CombatStrategy< Npc > strategy)
CombatStrategy< Npc > getStrategy()
The combat strategy of the mob.
The enumerated type whose elements represent the fighting types.