Inheritance: CritterChainEventArgs
        // called by engine
        bool RaiseAttack(Critter target)
        {
            var e = new CritterAttackEventArgs(this, target);

            if (Attack != null)
            {
                Attack(this, e);
            }
            return(e.Prevent);
        }
Exemple #2
0
 // called by engine
 bool RaiseAttack(Critter target)
 {
     var e = new CritterAttackEventArgs(this, target);
     if(Attack != null)
         Attack(this, e);
     return e.Prevent;
 }