RuneHive-Game
Loading...
Searching...
No Matches
DagannothPrime.java
Go to the documentation of this file.
1package com.runehive.game.world.entity.combat.strategy.npc.boss.dagannoths;
2
3import com.runehive.game.world.entity.combat.attack.FightType;
4import com.runehive.game.world.entity.combat.hit.CombatHit;
5import com.runehive.game.world.entity.combat.strategy.npc.NpcMagicStrategy;
6import com.runehive.game.world.entity.mob.Mob;
7import com.runehive.game.world.entity.mob.npc.Npc;
8
9import static com.runehive.game.world.entity.combat.projectile.CombatProjectile.getDefinition;
10
11/** @author Michael | Chex */
12public class DagannothPrime extends NpcMagicStrategy {
13
14 public DagannothPrime() {
15 super(getDefinition("Water Wave"));
16 }
17
18 @Override
19 public int getAttackDelay(Npc attacker, Mob defender, FightType fightType) {
20 return attacker.definition.getAttackDelay();
21 }
22
23 @Override
24 public CombatHit[] getHits(Npc attacker, Mob defender) {
25 return new CombatHit[] { nextMagicHit(attacker, defender, 50) };
26 }
27
28}
A wrapper for a Hit object, adding additional variables for hit and hitsplat delays.
final CombatHit nextMagicHit(T attacker, Mob defender)
Handles the mob class.
Definition Mob.java:66
Represents a non-player character in the in-game world.
Definition Npc.java:29
The enumerated type whose elements represent the fighting types.