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