1package com.runehive.game.world.entity.combat.strategy.player.custom;
3import com.runehive.game.Animation;
4import com.runehive.game.Graphic;
5import com.runehive.game.UpdatePriority;
6import com.runehive.game.world.entity.combat.CombatType;
7import com.runehive.game.world.entity.combat.CombatUtil;
8import com.runehive.game.world.entity.combat.attack.FightType;
9import com.runehive.game.world.entity.combat.hit.CombatHit;
10import com.runehive.game.world.entity.combat.hit.Hit;
11import com.runehive.game.world.entity.combat.strategy.basic.MeleeStrategy;
12import com.runehive.game.world.entity.mob.Mob;
13import com.runehive.game.world.entity.mob.player.Player;
14import com.runehive.game.world.items.Item;
15import com.runehive.game.world.items.containers.equipment.Equipment;
16import com.runehive.game.world.position.Position;
39 super.start(attacker, defender, hits);
71 return attacker.
getCombat().getFightType().getDelay();
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)
void hit(T attacker, Mob defender, Hit hit)
Called when the attacking mob performs an attack on the defender.
static final Graphic GRAPHIC
void attack(Player attacker, Mob defender, Hit hit)
void hitEvent(Player attacker, Mob defender, Mob other)
int getAttackDistance(Player attacker, FightType fightType)
void start(Player attacker, Mob defender, Hit[] hits)
boolean canAttack(Player attacker, Mob defender)
static final ScytheOfViturStrategy INSTANCE
Animation getAttackAnimation(Player attacker, Mob defender)
CombatType getCombatType()
int getAttackDelay(Player attacker, Mob defender, FightType fightType)
CombatHit[] getHits(Player attacker, Mob defender)
static final Animation ANIMATION
abstract Combat<? extends Mob > getCombat()
The combat of the mob.
void animate(int animation)
This class represents a character controlled by a player.
final Equipment equipment
boolean equals(Object obj)
Combat< Player > getCombat()
The combat of the mob.
The container class that represents an item that can be interacted with.
final Item get(int index)
Gets the Item located on index.
The container that manages the equipment for a player.
static final int WEAPON_SLOT
Represents a single tile on the game world.
static boolean isWithinDiagonalDistance(Mob attacker, Mob defender, int distance)
boolean equals(Object obj)
Represents different priorities for updating.
The enumerated type whose elements represent the fighting types.