Example #1
0
 public override void OnScannedMedicalKit(ScannedMedicalKitEvent e)
 {
     //double absoluteBearing = e.BearingRadians + HeadingRadians;
     //TurnRightRadians(Utils.NormalRelativeAngle(absoluteBearing - RadarHeadingRadians));
     //SetAhead(e.Distance);
     TurnRight(e.Bearing);
     Ahead(e.Distance);
 }
Example #2
0
        public override void OnScannedMedicalKit(ScannedMedicalKitEvent e)
        {
            medKitAppeared = true;
            var absBearing = HeadingRadians + e.BearingRadians;

            _lastMedPoint = Helper.GetProjection(X, Y, absBearing, e.Distance);
            medEnergy     = e.HealEnergy;
            medKitLocked  = true;
//            hasScanedMed = true;
            //            Out.WriteLine("Time : {0} \t medturn: {1}", Time, medKitTurnPast);
        }
Example #3
0
 void IHandleScanedRobot.OnScannedMedicalKit(ScannedMedicalKitEvent evnt)
 {
     //throw new NotImplementedException();
 }
Example #4
0
 void IHandleScanedRobot.OnScannedMedicalKit(ScannedMedicalKitEvent evnt)
 {
     headingEnemy        = false;
     lastMedicalKitEvent = evnt;
 }
 public override void OnScannedMedicalKit(ScannedMedicalKitEvent evnt)
 {
     currentHandler.OnScannedMedicalKit(evnt);
     //base.OnScannedMedicalKit(evnt);
 }