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.hit.CombatHit;
8import com.runehive.game.world.entity.combat.hit.Hit;
9import com.runehive.game.world.entity.combat.strategy.player.PlayerMeleeStrategy;
10import com.runehive.game.world.entity.mob.Mob;
11import com.runehive.game.world.entity.mob.player.Player;
12import com.runehive.game.world.entity.mob.player.PlayerRight;
14import java.util.Collections;
15import java.util.LinkedList;
31 List<Hit> extra =
new LinkedList<>();
35 Collections.addAll(extra, hits);
59 if (extra !=
null) extra.add(
hit);
Class that models a single animation used by an entity.
Represents a single graphic that can be used by entities.
abstract boolean equals(Object obj)
A collection of util methods and constants related to combat.
static boolean canBasicAttack(Mob attacker, Mob defender)
static void areaAction(Mob mob, Consumer< Mob > action)
Executes an action for mobs within a 3x3 square, including the source mob.
A wrapper for a Hit object, adding additional variables for hit and hitsplat delays.
A Hit object holds the damage amount and hitsplat data.
CombatHit nextMeleeHit(T attacker, Mob defender)
static void addCombatExperience(Player player, Hit... hits)
void hit(Player attacker, Mob defender, Hit hit)
Animation getAttackAnimation(Player attacker, Mob defender)
int modifyAccuracy(Player attacker, Mob defender, int roll)
static final Graphic GRAPHIC
void hitEvent(Player attacker, Mob defender, Mob other, List< Hit > extra)
static final DinhsBulwark INSTANCE
void start(Player attacker, Mob defender, Hit[] hits)
static final Animation ANIMATION
void animate(int animation)
final boolean isPlayer()
Check if an entity is a player.
Optional< Graphic > graphic
This class represents a character controlled by a player.
CombatSpecial getCombatSpecial()
boolean equals(Object obj)
Combat< Player > getCombat()
The combat of the mob.
Represents different priorities for updating.
void drain(Player player)
Drains the special bar for player.
Holds all the player right data.
static boolean isIronman(Player player)
Checks if the player is an ironman.