HitWeaponResult
extends WeaponResult
in package
FinalYes
Represents a weapon hit a target, including the damage applied, taken, and an on-kill callback.
Tags
Table of Contents
Properties
- $actualDamage : TakenDamage
- $killResult : KillResultInterface|null
- $target : CombatantInterface
- $weapon : AbstractWeapon
- $weaponDamage : WeaponDamage
Methods
- __construct() : mixed
- The target's CombatantInterface specialization determines actual damage type.
Properties
$actualDamage read-only
public
TakenDamage
$actualDamage
$killResult read-only
public
KillResultInterface|null
$killResult
$target read-only
public
CombatantInterface
$target
$weapon read-only
public
AbstractWeapon
$weapon
$weaponDamage read-only
public
WeaponDamage
$weaponDamage
Methods
__construct()
The target's CombatantInterface specialization determines actual damage type.
public
__construct(AbstractWeapon $weapon, TTarget $target, WeaponDamage $weaponDamage, TakenDamage $actualDamage, KillResultInterface|null $killResult) : mixed
Parameters
- $weapon : AbstractWeapon
- $target : TTarget
- $weaponDamage : WeaponDamage
- $actualDamage : TakenDamage
- $killResult : KillResultInterface|null