/// <summary>
 /// Called when an entity is hit.
 /// </summary>
 /// <param name="sender">Whosoever sent it</param>
 /// <param name="weapon">What the entity was hit by</param>
 public override void recieveAttack(DynamicEntity sender, DynamicEntity.Weapon weapon)
 {
     this.Health -= weapon.Damage;
     Console.WriteLine(this.Type + " Attacked: " + this.Health);
     if (this.Health <= 0)
     {
         die();
     }
 }
예제 #2
0
 public override void recieveAttack(DynamicEntity sender, DynamicEntity.Weapon weapon)
 {
     //
 }
예제 #3
0
 public abstract void recieveAttack(DynamicEntity sender, DynamicEntity.Weapon weapon);