예제 #1
0
 // Takes damage from source.
 public void TakeDamage(IDamageDealer source, Damage damage)
 {
     HealthPoints.Current -= damage.Amount;
     CheckDeath();
 }
예제 #2
0
 // Deals damage to target.
 public void DealDamage(IDamageable target, Damage damage)
 {
     target.TakeDamage(this, damage);
 }