formatting tweaks and continuation of documentation grind

This commit is contained in:
dtookey 2023-08-06 19:36:56 -04:00
parent fdb4eb3d57
commit 1396fa5c95
2 changed files with 3 additions and 32 deletions

View File

@ -82,4 +82,6 @@ interface Orchestrator {
* @param p The center point of the star to draw. * @param p The center point of the star to draw.
*/ */
fun drawStar(p: Point) fun drawStar(p: Point)
} }

View File

@ -71,20 +71,6 @@ interface RSCoordinator {
waitDurationVarianceMillis: Long 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 fun getBankPoint(): Point
} }
@ -173,21 +159,6 @@ private class RSAgent(override val automaton: Automaton = RobotController()) : R
/*============================================================================================================== /*==============================================================================================================
interface implementation 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( override fun processAtBank(
bankPoint: Point, bankPoint: Point,
bankPresetHotkey: Int, bankPresetHotkey: Int,
@ -317,6 +288,4 @@ private class RSAgent(override val automaton: Automaton = RobotController()) : R
} }
} }
} }
} }