1package com.runehive.game.world.entity.combat.strategy.basic;
3import com.runehive.Config;
4import com.runehive.game.Graphic;
5import com.runehive.game.world.entity.combat.attack.FightType;
6import com.runehive.game.world.entity.combat.hit.Hit;
7import com.runehive.game.world.entity.combat.strategy.CombatStrategy;
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;
11import com.runehive.game.world.pathfinding.path.SimplePathChecker;
12import com.runehive.util.Utility;
24 FightType fightType = attacker.getCombat().getFightType();
35 if (
hit.getDamage() <= 0)
continue;
36 exp +=
hit.getDamage();
The class that contains setting-related constants for the server.
static final double COMBAT_MODIFICATION
The experience modification for combat.
Represents a single graphic that can be used by entities.
static final int HIGH_HEIGHT
A Hit object holds the damage amount and hitsplat data.
abstract int getAttackDistance(T attacker, FightType fightType)
void hit(T attacker, Mob defender, Hit hit)
Called when the attacking mob performs an attack on the defender.
static final Graphic SPLASH
The spell splash graphic.
boolean withinDistance(T attacker, Mob defender)
static void addCombatExperience(Player player, double base, Hit... hits)
This class represents a character controlled by a player.
Represents a trainable and usable skill.
static final int MAGIC
The magic skill id.
static final int HITPOINTS
The hitpoints skill id.
Represents a PathFinder which is meant to be used to check projectiles passage in a straight line.
static boolean checkProjectile(Interactable source, Interactable target)
Handles miscellaneous methods.
static boolean inRange(int absX, int absY, int size, int targetX, int targetY, int targetSize, int distance)
The enumerated type whose elements represent the fighting types.