RuneHive-Game
Loading...
Searching...
No Matches
BrutalDragonfireStrategy.java
Go to the documentation of this file.
1package com.runehive.game.world.entity.combat.strategy.npc.impl;
2
3import com.runehive.game.Animation;
4import com.runehive.game.UpdatePriority;
5import com.runehive.game.world.World;
6import com.runehive.game.world.entity.combat.CombatUtil;
7import com.runehive.game.world.entity.combat.attack.FightType;
8import com.runehive.game.world.entity.combat.hit.CombatHit;
9import com.runehive.game.world.entity.combat.projectile.CombatProjectile;
10import com.runehive.game.world.entity.combat.strategy.npc.NpcMagicStrategy;
11import com.runehive.game.world.entity.mob.Mob;
12import com.runehive.game.world.entity.mob.npc.Npc;
13
15
16 public BrutalDragonfireStrategy(CombatProjectile projectileDefinition) {
17 super(projectileDefinition);
18 }
19
20 @Override
21 public Animation getAttackAnimation(Npc attacker, Mob defender) {
22 return new Animation(81, UpdatePriority.VERY_HIGH);
23 }
24
25 @Override
26 public int getAttackDistance(Npc attacker, FightType fightType) {
27 return 7;
28 }
29
30 @Override
31 public CombatHit[] getHits(Npc attacker, Mob defender) {
32 return new CombatHit[] { CombatUtil.generateDragonfire(attacker, defender, 50, true) };
33 }
34
35}
Class that models a single animation used by an entity.
A collection of util methods and constants related to combat.
static CombatHit generateDragonfire(Mob attacker, Mob defender, int max, boolean prayer)
A wrapper for a Hit object, adding additional variables for hit and hitsplat delays.
Handles the mob class.
Definition Mob.java:66
Represents a non-player character in the in-game world.
Definition Npc.java:29
Represents different priorities for updating.
The enumerated type whose elements represent the fighting types.