From 8e284484281b9fa4e785c576ae0b5f003d400311 Mon Sep 17 00:00:00 2001 From: dtookey Date: Sun, 6 Aug 2023 18:20:30 -0400 Subject: [PATCH] changed some names around --- src/main/kotlin/Agent.kt | 2 +- src/main/kotlin/RobotController.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/Agent.kt b/src/main/kotlin/Agent.kt index 4feee65..1981b23 100644 --- a/src/main/kotlin/Agent.kt +++ b/src/main/kotlin/Agent.kt @@ -19,7 +19,7 @@ import java.awt.event.KeyEvent * specific workflow logic and leverage the agent for the lower level * activities needed to craft, cook, etc. */ -class Agent(val controller: DesktopInputController = RobotController()) { +class Agent(val controller: Automaton = RobotController()) { companion object { diff --git a/src/main/kotlin/RobotController.kt b/src/main/kotlin/RobotController.kt index ddb83a7..6317742 100644 --- a/src/main/kotlin/RobotController.kt +++ b/src/main/kotlin/RobotController.kt @@ -158,7 +158,7 @@ interface DesktopController { * Classes that implement this interface can serve as full featured * controllers for desktop automation tasks. */ -interface DesktopInputController : DesktopController, InputController, TemporalController +interface Automaton : DesktopController, InputController, TemporalController /** * Data class to hold wiggle parameters for mouse movement. @@ -190,7 +190,7 @@ data class WiggleParams( * * @param robot The Robot instance to use. A default is created if not provided. */ -open class RobotController(private val robot: Robot = Robot()) : DesktopInputController { +open class RobotController(private val robot: Robot = Robot()) : Automaton { /** * Moves the mouse cursor to the given [Point]. *