Class Mouse.PathGenerator

    • Constructor Summary

      Constructors 
      Constructor Description
      PathGenerator()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean hop​(java.awt.Point point)
      Sends a MouseEvent to the game that tells it the mouse moved to the given point
      abstract boolean move​(Interactable target, double velocityMultiplier)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PathGenerator

        public PathGenerator()
    • Method Detail

      • hop

        public static boolean hop​(java.awt.Point point)
        Sends a MouseEvent to the game that tells it the mouse moved to the given point
        Returns:
        true if it sent the mouse event, false if the point was null, it failed to send the event or the mouse was already at the specified point
      • move

        public abstract boolean move​(Interactable target,
                                     double velocityMultiplier)
        Parameters:
        target - The object to move into
        velocityMultiplier - A velocity multiplier with a base of 1.00