From 1396fa5c9504773893db82228c3ffe2cfe15ef6e Mon Sep 17 00:00:00 2001 From: dtookey Date: Sun, 6 Aug 2023 19:36:56 -0400 Subject: [PATCH] formatting tweaks and continuation of documentation grind --- src/main/kotlin/Orchestrator.kt | 4 +++- src/main/kotlin/RSLogic.kt | 31 ------------------------------- 2 files changed, 3 insertions(+), 32 deletions(-) diff --git a/src/main/kotlin/Orchestrator.kt b/src/main/kotlin/Orchestrator.kt index 9eaa12b..943fda7 100644 --- a/src/main/kotlin/Orchestrator.kt +++ b/src/main/kotlin/Orchestrator.kt @@ -82,4 +82,6 @@ interface Orchestrator { * @param p The center point of the star to draw. */ fun drawStar(p: Point) -} \ No newline at end of file +} + + diff --git a/src/main/kotlin/RSLogic.kt b/src/main/kotlin/RSLogic.kt index 1e34e6b..b6636ca 100644 --- a/src/main/kotlin/RSLogic.kt +++ b/src/main/kotlin/RSLogic.kt @@ -71,20 +71,6 @@ interface RSCoordinator { waitDurationVarianceMillis: Long ) - /** - * Perform bank standing without random events. - * - * This involves: - * 1. Clicking the bank chest at bankPoint - * 2. Pressing inventoryHotKey to load an inventory preset - * 3. Pressing actionBarHotKey to perform an action - * - * @param bankPoint Location of bank chest - * @param inventoryHotKey Key code to clear inventory - * @param actionBarHotKey Key code to clear action bar - */ - fun bankStandWithoutDialog(bankPoint: Point, inventoryHotKey: Int, actionBarHotKey: Int) - fun getBankPoint(): Point } @@ -173,21 +159,6 @@ private class RSAgent(override val automaton: Automaton = RobotController()) : R /*============================================================================================================== interface implementation ==============================================================================================================*/ - - override fun bankStandWithoutDialog(bankPoint: Point, inventoryHotKey: Int, actionBarHotKey: Int) { - //open the bank located by the chest parameter - moveMouseLeftClickAndSleep(automaton.getAlmostPoint(bankPoint, WiggleParams()), 900, 400) - //withdraw the desired inventory preset - automaton.keyPress(inventoryHotKey) - - sleepForNTicks(1) - - //press the hotkey that causes action without dialogue - automaton.keyPress(actionBarHotKey) - - sleepForNTicks(1) - } - override fun processAtBank( bankPoint: Point, bankPresetHotkey: Int, @@ -317,6 +288,4 @@ private class RSAgent(override val automaton: Automaton = RobotController()) : R } } } - - } \ No newline at end of file