1package com.osroyale.game.world.entity.combat.hit;
3import java.util.function.Function;
56 private boolean accurate;
58 private Hit[] multipleHits =
null;
66 this.multipleHits = multipleHits;
68 for(
Hit hit : multipleHits) totalDamage += hit.damage;
69 this.damage = totalDamage;
82 this.hitsplat = hitsplat;
83 this.hitIcon = hitIcon;
84 this.accurate = accurate;
95 this(damage, hitsplat, hitIcon, damage > 0);
133 this.damage = damage;
143 damage = modifier.apply(damage);
186 public Hit[] getMultipleHits() {
return multipleHits; }
194 this.hitIcon = hitIcon;
197 public void setHitsplat(
Hitsplat hitsplat) {
198 this.hitsplat = hitsplat;
201 public void setAs(
Hit other) {
202 this.damage = other.damage;
203 this.hitIcon = other.hitIcon;
204 this.hitsplat = other.hitsplat;
205 this.accurate = other.accurate;
208 public void setAccurate(
boolean accurate) {
209 this.accurate = accurate;
Hit(int damage, Hitsplat hitsplat, HitIcon hitIcon)
Hit(int damage, Hitsplat hitsplat, HitIcon hitIcon, boolean accurate)
Hit(int damage, Hitsplat hitsplat)
Hit(int damage, HitIcon hitIcon)
void setIcon(HitIcon hitIcon)
void modifyDamage(Function< Integer, Integer > modifier)
void setDamage(int damage)