// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

public final class MouseDetection
        implements Runnable
{

    public void run()
    {
        while(running) 
        {
            synchronized(syncObject)
            {
                if(coordsIndex < 500)
                {
                    coordsX[coordsIndex] = ((RSApplet) (clientInstance)).mouseX;
                    coordsY[coordsIndex] = ((RSApplet) (clientInstance)).mouseY;
                    coordsIndex++;
                }
            }
            try
            {
                Thread.sleep(50L);
            }
            catch(Exception _ex) { }
        }
    }

    public MouseDetection(client client1, int dummy)
    {
        syncObject = new Object();
        coordsY = new int[500];
        running = true;
        for(coordsX = new int[500]; dummy >= 0;)
            throw new NullPointerException();

        clientInstance = client1;
    }

    private client clientInstance;
    public final Object syncObject;
    public final int[] coordsY;
    public boolean running;
    public final int[] coordsX;
    public int coordsIndex;
}
