1package com.runehive.game.world.entity.combat.strategy.player.special.melee;
3import com.runehive.game.Animation;
4import com.runehive.game.Graphic;
5import com.runehive.game.UpdatePriority;
6import com.runehive.game.world.entity.combat.CombatUtil;
7import com.runehive.game.world.entity.combat.attack.FormulaFactory;
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.hit.HitIcon;
11import com.runehive.game.world.entity.combat.strategy.player.PlayerMeleeStrategy;
12import com.runehive.game.world.entity.mob.Mob;
13import com.runehive.game.world.entity.mob.player.Player;
26 super.start(attacker, defender, hits);
41 return new CombatHit[]{first, second, third, fourth};
53 return thirdOption(attacker, defender, inaccurate, second);
57 return new CombatHit[]{inaccurate, second, third, third};
64 return fourthOption(attacker, defender, inaccurate, inaccurate2);
70 return new CombatHit[]{inaccurate, inaccurate2, third, fourth};
83 return new CombatHit[]{inaccurate, inaccurate2, fourth, fourth};
Class that models a single animation used by an entity.
Represents a single graphic that can be used by entities.
A collection of util methods and constants related to combat.
static int getHitDelay(final Mob attacker, final Mob defender, final CombatType type)
Gets the hit delay for the specified type.
A wrapper for a Hit object, adding additional variables for hit and hitsplat delays.
CombatHit copyAndModify(Function< Integer, Integer > modifier)
Copies and modifies this combat hit.
A Hit object holds the damage amount and hitsplat data.
int getDamage()
Gets the damage amount.
void setDamage(int damage)
Sets the hit damage.
void modifyDamage(Function< Integer, Integer > modifier)
Sets the hit damage with a function.
CombatHit nextMeleeHit(T attacker, Mob defender)
CombatType getCombatType()
void hit(Player attacker, Mob defender, Hit hit)
static final DragonClaws INSTANCE
CombatHit[] getHits(Player attacker, Mob defender)
CombatHit[] fourthOption(Player attacker, Mob defender, CombatHit inaccurate, CombatHit inaccurate2)
static final Graphic GRAPHIC
Animation getAttackAnimation(Player attacker, Mob defender)
static final Animation ANIMATION
CombatHit[] thirdOption(Player attacker, Mob defender, CombatHit inaccurate, CombatHit inaccurate2)
void start(Player attacker, Mob defender, Hit[] hits)
int modifyAccuracy(Player attacker, Mob defender, int roll)
CombatHit[] secondOption(Player attacker, Mob defender, CombatHit inaccurate)
Optional< Graphic > graphic
This class represents a character controlled by a player.
Represents different priorities for updating.
The enumerated type whose elements represent the hit icon of a Hit.
MELEE
Represents the melee sword hit icon.