public void Attack(Survivor survivor) { if (!CanAttack()) { return; } survivor.OnHit(); NextAvailableAttack = DateTime.Now.Add(TimeSpan.FromSeconds(5)); }
public void Pickup(Survivor survivor) { HeldSurvivor = survivor; survivor.OnPickedUp(); }
public bool CanPickup(Survivor survivor) { return(HeldSurvivor == null); }