Beispiel #1
0
 public override void NotifyBumpedCritter(OtherCritter other)
 {
     //when the critter bumps into a critter which is weak of veryweak, go in this
     //direction (towards the critter), at this speed and attack.
     if (other.Strength == Strength.Weaker || other.Strength == Strength.MuchWeaker)
     {
         Critter.Direction = other.DirectionTo;
         Critter.Move(10);
         other.Attack();
     }
 }
 public override void NotifyBumpedCritter(OtherCritter other)
 {
     Critter.Direction = Critter.Direction + 180;
     Critter.Speed     = configuration.NominalSpeed;
 }