// called by engine bool RaiseAttacked(Critter attacker) { var e = new CritterAttackedEventArgs(this, attacker); if (Attacked != null) { Attacked(this, e); } return(e.Prevent); }
// called by engine bool RaiseAttacked(Critter attacker) { var e = new CritterAttackedEventArgs(this, attacker); if (Attacked != null) Attacked(this, e); return e.Prevent; }