1package com.runehive.game.world.entity.combat.strategy.npc;
3import com.runehive.game.Animation;
4import com.runehive.game.UpdatePriority;
5import com.runehive.game.world.entity.combat.CombatType;
6import com.runehive.game.world.entity.combat.attack.FightType;
7import com.runehive.game.world.entity.combat.effect.impl.CombatPoisonEffect;
8import com.runehive.game.world.entity.combat.effect.impl.CombatVenomEffect;
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.npc.Npc;
14import com.runehive.util.RandomUtils;
Class that models a single animation used by an entity.
The combat effect applied when a character needs to be poisoned.
static Optional< PoisonType > getPoisonType(Item item)
Gets the PoisonType for item wrapped in an optional.
The combat effect applied when a character needs to be venomed.
static boolean isVenomous(Npc npc)
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.
CombatType getCombatType()
int getAttackDistance(Npc attacker, FightType fightType)
int getAttackDelay(Npc attacker, Mob defender, FightType fightType)
void attack(Npc attacker, Mob defender, Hit hit)
Animation getAttackAnimation(Npc attacker, Mob defender)
static final NpcMeleeStrategy INSTANCE
CombatHit[] getHits(Npc attacker, Mob defender)
boolean canAttack(Npc attacker, Mob defender)
void start(Npc attacker, Mob defender, Hit[] hits)
void animate(int animation)
void venom()
Applies venom to the entity.
Represents a non-player character in the in-game world.
A static-util class that provides additional functionality for generating pseudo-random numbers.
static boolean success(double value)
Determines if a pseudorandomly generated double rounded to two decimal places is below or equal to va...
Represents different priorities for updating.
The enumerated type whose elements represent the fighting types.