public override void GotHit(CActor hitby, System.Collections.Generic.List<CActor> toRemoveSelf, System.Collections.Generic.List<CActor> toRemoveOther) { System.Console.WriteLine("Got Hit!"); toRemoveOther.Add(hitby); }
/// <summary> /// Actor was hit /// </summary> /// <param name="hitby">Actor was hit by this</param> /// <param name="toRemove">List to remove actor</param> /// <param name="toRemoveWeapon">List to remove hitby</param> public override void GotHit(CActor hitby, List<CActor> toRemove, List<CActor> toRemoveWeapon) { Console.WriteLine("Hit Monster"); toRemove.Add(this); toRemoveWeapon.Add(hitby); }
/// <summary> /// Called when an actor is hit by another actor /// </summary> /// <param name="hitby">Actor that hit the current actor</param> /// <param name="toRemoveSelf">List to remove the current actor</param> /// <param name="toRemoveOther">List to remove the other actor</param> public virtual void GotHit(CActor hitby, List<CActor> toRemoveSelf, List<CActor> toRemoveOther) { }