1package com.runehive.game.world.entity.combat.attack.listener.npc.dragon;
3import com.runehive.game.Animation;
4import com.runehive.game.UpdatePriority;
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.strategy.CombatStrategy;
10import com.runehive.game.world.entity.combat.strategy.npc.NpcMeleeStrategy;
11import com.runehive.game.world.entity.combat.strategy.npc.impl.DragonfireStrategy;
12import com.runehive.game.world.entity.mob.Mob;
13import com.runehive.game.world.entity.mob.npc.Npc;
15import static com.runehive.game.world.entity.combat.CombatUtil.createStrategyArray;
16import static com.runehive.game.world.entity.combat.CombatUtil.randomStrategy;
17import static com.runehive.game.world.entity.combat.projectile.CombatProjectile.getDefinition;
29 }
catch (Exception e) {
39 return attacker.
getStrategy().canAttack(attacker, defender);
Class that models a single animation used by an entity.
static final Animation ANIMATION
int getAttackDistance(Npc attacker, FightType fightType)
CombatHit[] getHits(Npc attacker, Mob defender)
Animation getAttackAnimation(Npc attacker, Mob defender)
void finishOutgoing(Npc attacker, Mob defender)
static CombatStrategy< Npc >[] STRATEGIES
static DragonfireStrategy DRAGONFIRE
boolean canAttack(Npc attacker, Mob defender)
A wrapper for a Hit object, adding additional variables for hit and hitsplat delays.
CombatHit nextMeleeHit(T attacker, Mob defender)
boolean withinDistance(T attacker, Mob defender)
static NpcMeleeStrategy get()
Represents a non-player character in the in-game world.
void setStrategy(CombatStrategy< Npc > strategy)
CombatStrategy< Npc > getStrategy()
The combat strategy of the mob.
Represents different priorities for updating.
The enumerated type whose elements represent the fighting types.