Example #1
0
 public override void OnHitRobot(HitRobotEvent e)
 {
     base.OnHitRobot(e);
     if (IsTeammate(e.Name))
     {
         Stragegy.Clear();
         Stragegy = new Zoombie(this);
         Stragegy.Init();
     }
 }
Example #2
0
 public override void OnScannedRobot(ScannedRobotEvent e)
 {
     base.OnScannedRobot(e);
     if (!IsTeammate(e.Name))
     {
         if (e.Distance <= 120 && !(Stragegy is RamBot))
         {
             Stragegy.Clear();
             Stragegy = new RamBot(this);
             Stragegy.Init();
         }
     }
 }