formatting tweaks and continuation of documentation grind
This commit is contained in:
parent
fdb4eb3d57
commit
1396fa5c95
@ -83,3 +83,5 @@ interface Orchestrator {
|
|||||||
*/
|
*/
|
||||||
fun drawStar(p: Point)
|
fun drawStar(p: Point)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user