예제 #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);
 }
예제 #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);
        }
예제 #3
0
 void IHandleScanedRobot.OnScannedMedicalKit(ScannedMedicalKitEvent evnt)
 {
     //throw new NotImplementedException();
 }
예제 #4
0
 void IHandleScanedRobot.OnScannedMedicalKit(ScannedMedicalKitEvent evnt)
 {
     headingEnemy        = false;
     lastMedicalKitEvent = evnt;
 }
예제 #5
0
 public override void OnScannedMedicalKit(ScannedMedicalKitEvent evnt)
 {
     currentHandler.OnScannedMedicalKit(evnt);
     //base.OnScannedMedicalKit(evnt);
 }