Class MousePackets


  • public class MousePackets
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MousePackets()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void queueClickPacket​(int x, int y)
      Queues a click packet to send to the game server.
      • Methods inherited from class java.lang.Object

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

      • MousePackets

        public MousePackets()
    • Method Detail

      • queueClickPacket

        public void queueClickPacket​(int x,
                                     int y)
        Queues a click packet to send to the game server. The click packet should be sent before any game interaction (Widget, Movement, Npc, Object etc...) packets are sent. The click packet encapsulates the x and y coordinates of the canvas for the click that was made.
        Parameters:
        x - The x canvas coordinate.
        y - The y canvas coordinate.