WeaponShotAtCombatant
in package
Tags
Table of Contents
Properties
- $shooter : CombatantInterface
- $target : CombatantInterface
- $resolveKill : Closure
Methods
- __construct() : mixed
- Stores the weapon shot context until the weapon evaluates killing shot status.
- resolveKill() : KillResultInterface
Properties
$shooter read-only
public
CombatantInterface
$shooter
$target read-only
public
CombatantInterface
$target
$resolveKill read-only
private
Closure
$resolveKill
Methods
__construct()
Stores the weapon shot context until the weapon evaluates killing shot status.
public
__construct(CombatantInterface $shooter, TTarget $target, callable(): KillResultInterface $resolveKill) : mixed
This ensures kill side effects occur only after damage is applied.
Parameters
- $shooter : CombatantInterface
- $target : TTarget
- $resolveKill : callable(): KillResultInterface
resolveKill()
public
resolveKill() : KillResultInterface