/// <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();
     }
 }
Example #2
0
 public override void recieveAttack(DynamicEntity sender, DynamicEntity.Weapon weapon)
 {
     //
 }
Example #3
0
 public abstract void recieveAttack(DynamicEntity sender, DynamicEntity.Weapon weapon);