RuneHive-Game
Loading...
Searching...
No Matches
ArmadylSpirtualRanger.java
Go to the documentation of this file.
1package com.runehive.game.world.entity.combat.attack.listener.npc.godwar;
2
3import com.runehive.game.world.entity.combat.attack.listener.NpcCombatListenerSignature;
4import com.runehive.game.world.entity.combat.attack.listener.SimplifiedListener;
5import com.runehive.game.world.entity.combat.hit.Hit;
6import com.runehive.game.world.entity.combat.strategy.CombatStrategy;
7import com.runehive.game.world.entity.combat.strategy.npc.NpcMeleeStrategy;
8import com.runehive.game.world.entity.combat.strategy.npc.NpcRangedStrategy;
9import com.runehive.game.world.entity.mob.Mob;
10import com.runehive.game.world.entity.mob.npc.Npc;
11
12import static com.runehive.game.world.entity.combat.CombatUtil.createStrategyArray;
13import static com.runehive.game.world.entity.combat.CombatUtil.randomStrategy;
14import static com.runehive.game.world.entity.combat.projectile.CombatProjectile.getDefinition;
15
16/**
17 * @author Daniel
18 */
19@NpcCombatListenerSignature(npcs = { 3166, 3167, 3172, 3183, 3176 })
21
22 private static RangedAttack RANGED = new RangedAttack();
23
24 @Override
25 public void start(Npc attacker, Mob defender, Hit[] hits) {
26 attacker.setStrategy(RANGED);
27 }
28
29 private static class RangedAttack extends NpcRangedStrategy {
30 private RangedAttack() {
31 super(getDefinition("Spirtual Ranger"));
32 }
33 }
34}
A Hit object holds the damage amount and hitsplat data.
Definition Hit.java:10
Handles the mob class.
Definition Mob.java:66
Represents a non-player character in the in-game world.
Definition Npc.java:29
void setStrategy(CombatStrategy< Npc > strategy)
Definition Npc.java:212