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.hit.Hit;
7import com.runehive.game.world.entity.combat.strategy.player.PlayerMeleeStrategy;
8import com.runehive.game.world.entity.mob.Mob;
9import com.runehive.game.world.entity.mob.player.Player;
10import com.runehive.game.world.entity.skill.Skill;
27 super.start(attacker, defender, hits);
32 super.attack(attacker, defender, h);
39 for (
int s : skillOrder) {
46 removeFromSkill = damage - difference;
48 removeFromSkill = damage;
55 damage -= removeFromSkill;
77 return (
int) (damage * 1.21);
Class that models a single animation used by an entity.
Represents a single graphic that can be used by entities.
A Hit object holds the damage amount and hitsplat data.
int getDamage()
Gets the damage amount.
boolean isAccurate()
Checks if the hit is accurate.
static final BandosGodsword INSTANCE
void attack(Player attacker, Mob defender, Hit h)
static final Graphic GRAPHIC
void start(Player attacker, Mob defender, Hit[] hits)
int modifyDamage(Player attacker, Mob defender, int damage)
Animation getAttackAnimation(Player attacker, Mob defender)
static final Animation ANIMATION
int modifyAccuracy(Player attacker, Mob defender, int roll)
final SkillManager skills
final boolean isPlayer()
Check if an entity is a player.
Optional< Graphic > graphic
This class represents a character controlled by a player.
void message(String message)
Represents a trainable and usable skill.
static String getName(int skill)
Gets the name for a skill id.
static final int PRAYER
The prayer skill id.
static final int RANGED
The ranged skill id.
static final int DEFENCE
The defence skill id.
void removeLevel(int amount)
Removes levels from this skill by the given amount.
static final int MAGIC
The magic skill id.
static final int ATTACK
The attack skill id.
static final int STRENGTH
The strength skill id.
int getLevel(int id)
Gets the level of a skill.
Skill get(int id)
Gets the skill for an id.
void refresh()
Refreshes all the skills for the mob.
Represents different priorities for updating.