Class MousePath


  • public final class MousePath
    extends java.lang.Object
    A planned movement: where the cursor goes, and when.

    Paths are values. Planning is separated from execution so a path can be inspected, drawn on the overlay, compared against a recording or asserted in a test without any of it touching the game.

    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • size

        public int size()
      • getReactionMs

        public int getReactionMs()
        Pause before the first movement, representing noticing and deciding.
      • getAimPauseMs

        public int getAimPauseMs()
        Pause between arriving and pressing the button.
      • isOvershot

        public boolean isOvershot()
      • getAlgorithm

        public java.lang.String getAlgorithm()
      • getGesture

        public java.lang.String getGesture()
        Backward-compatible alias for the kinematic movement algorithm name.
      • totalDurationMs

        public int totalDurationMs()
        Total wall time the path will take, including both pauses.
      • travelledDistance

        public double travelledDistance()
        Straight-line length actually travelled, useful for comparing against recordings.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object