private void TapRadarCloseClose() { Debug.WriteLine("TapRadarCloseClose()"); int xPosition = _rand.Next(_androidDevice.RadarCloseButtonAreaXStart, _androidDevice.RadarCloseButtonAreaXEnd); int yPosition = _rand.Next(_androidDevice.RadarCloseButtonAreaYStart, _androidDevice.RadarCloseButtonAreaYEnd); Trace.WriteLine(string.Format("「Close(レーダー)」ボタンをタップ: X={0}, Y={1}", xPosition, yPosition)); AdbOperation.Tap(xPosition, yPosition); }
private void TapWindowClose() { Debug.WriteLine("TapWindowClose()"); int xPosition = _rand.Next(_androidDevice.WindowCloseAreaXStart, _androidDevice.WindowCloseAreaXEnd); int yPosition = _rand.Next(_androidDevice.WindowCloseAreaYStart, _androidDevice.WindowCloseAreaYEnd); Trace.WriteLine(string.Format("linkを閉じるエリアをタップ: X={0}, Y={1}", xPosition, yPosition)); AdbOperation.Tap(xPosition, yPosition); }
private void TapCharge300Button() { Debug.WriteLine(nameof(TapCharge300Button)); int xPosition = _rand.Next(_androidDevice.Charge300ButtonAreaXStart, _androidDevice.Charge300ButtonAreaXEnd); int yPosition = _rand.Next(_androidDevice.Charge300ButtonAreaYStart, _androidDevice.Charge300ButtonAreaYEnd); Trace.WriteLine(string.Format("「バッテリー300」ボタンをタップ: X={0}, Y={1}", xPosition, yPosition)); AdbOperation.Tap(xPosition, yPosition); }
private void TapMaintenanceEscapeButton() { Debug.WriteLine("TapErrorEscapeButton()"); int xPosition = _rand.Next(_androidDevice.ReturnMaintenanceButtonAreaXStart, _androidDevice.ReturnMaintenanceButtonAreaXEnd); int yPosition = _rand.Next(_androidDevice.ReturnMaintenanceButtonAreaYStart, _androidDevice.ReturnMaintenanceButtonAreaYEnd); Trace.WriteLine(string.Format("メンテナンスから抜けるボタンをタップ: X={0}, Y={1}", xPosition, yPosition)); AdbOperation.Tap(xPosition, yPosition); }
private void TapBatteryButton() { Debug.WriteLine("TapBatteryButton()"); int xPosition = _rand.Next(_androidDevice.BatteryButtonAreaXStart, _androidDevice.BatteryButtonAreaXEnd); int yPosition = _rand.Next(_androidDevice.BatteryButtonAreaYStart, _androidDevice.BatteryButtonAreaYEnd); Trace.WriteLine(string.Format("「バッテリー」ボタンをタップ: X={0}, Y={1}", xPosition, yPosition)); AdbOperation.Tap(xPosition, yPosition); }