// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   gameServer_Stub.java

package boggle.server;

import java.io.*;
import java.rmi.*;
import java.rmi.server.*;

// Referenced classes of package boggle.server:
//            gameServerInterface

public final class gameServer_Stub extends RemoteStub
    implements gameServerInterface, Remote
{

    public gameServer_Stub()
    {
    }

    public gameServer_Stub(RemoteRef remoteref)
    {
        super(remoteref);
    }

    public void finalScore(int i, int j, int k)
        throws RemoteException
    {
        int l = 0;
        RemoteRef remoteref = ref;
        RemoteCall remotecall = remoteref.newCall(this, operations, l, 0xf4a0944ebd67b956L);
        try
        {
            java.io.ObjectOutput objectoutput = remotecall.getOutputStream();
            objectoutput.writeInt(i);
            objectoutput.writeInt(j);
            objectoutput.writeInt(k);
        }
        catch(IOException ioexception)
        {
            throw new MarshalException("Error marshaling arguments", ioexception);
        }
        try
        {
            remoteref.invoke(remotecall);
        }
        catch(RemoteException remoteexception)
        {
            throw remoteexception;
        }
        catch(Exception exception)
        {
            throw new UnexpectedException("Unexpected exception", exception);
        }
        remoteref.done(remotecall);
    }

    public String getGameDefinition(int i)
        throws RemoteException
    {
        int j = 1;
        RemoteRef remoteref = ref;
        RemoteCall remotecall = remoteref.newCall(this, operations, j, 0xf4a0944ebd67b956L);
        try
        {
            java.io.ObjectOutput objectoutput = remotecall.getOutputStream();
            objectoutput.writeInt(i);
        }
        catch(IOException ioexception)
        {
            throw new MarshalException("Error marshaling arguments", ioexception);
        }
        try
        {
            remoteref.invoke(remotecall);
        }
        catch(RemoteException remoteexception)
        {
            throw remoteexception;
        }
        catch(Exception exception)
        {
            throw new UnexpectedException("Unexpected exception", exception);
        }
        String s;
        try
        {
            ObjectInput objectinput = remotecall.getInputStream();
            s = (String)objectinput.readObject();
        }
        catch(IOException ioexception1)
        {
            throw new UnmarshalException("Error unmarshaling return", ioexception1);
        }
        catch(ClassNotFoundException classnotfoundexception)
        {
            throw new UnmarshalException("Return value class not found", classnotfoundexception);
        }
        catch(Exception exception2)
        {
            throw new UnexpectedException("Unexpected exception", exception2);
        }
        finally
        {
            remoteref.done(remotecall);
        }
        return s;
    }

    public int joinGame(int i, int j)
        throws RemoteException
    {
        byte byte0 = 2;
        RemoteRef remoteref = ref;
        RemoteCall remotecall = remoteref.newCall(this, operations, byte0, 0xf4a0944ebd67b956L);
        try
        {
            java.io.ObjectOutput objectoutput = remotecall.getOutputStream();
            objectoutput.writeInt(i);
            objectoutput.writeInt(j);
        }
        catch(IOException ioexception)
        {
            throw new MarshalException("Error marshaling arguments", ioexception);
        }
        try
        {
            remoteref.invoke(remotecall);
        }
        catch(RemoteException remoteexception)
        {
            throw remoteexception;
        }
        catch(Exception exception)
        {
            throw new UnexpectedException("Unexpected exception", exception);
        }
        int k;
        try
        {
            ObjectInput objectinput = remotecall.getInputStream();
            k = objectinput.readInt();
        }
        catch(IOException ioexception1)
        {
            throw new UnmarshalException("Error unmarshaling return", ioexception1);
        }
        catch(Exception exception2)
        {
            throw new UnexpectedException("Unexpected exception", exception2);
        }
        finally
        {
            remoteref.done(remotecall);
        }
        return k;
    }

    public int newGame(int i, int j, int k)
        throws RemoteException
    {
        byte byte0 = 3;
        RemoteRef remoteref = ref;
        RemoteCall remotecall = remoteref.newCall(this, operations, byte0, 0xf4a0944ebd67b956L);
        try
        {
            java.io.ObjectOutput objectoutput = remotecall.getOutputStream();
            objectoutput.writeInt(i);
            objectoutput.writeInt(j);
            objectoutput.writeInt(k);
        }
        catch(IOException ioexception)
        {
            throw new MarshalException("Error marshaling arguments", ioexception);
        }
        try
        {
            remoteref.invoke(remotecall);
        }
        catch(RemoteException remoteexception)
        {
            throw remoteexception;
        }
        catch(Exception exception)
        {
            throw new UnexpectedException("Unexpected exception", exception);
        }
        int l;
        try
        {
            ObjectInput objectinput = remotecall.getInputStream();
            l = objectinput.readInt();
        }
        catch(IOException ioexception1)
        {
            throw new UnmarshalException("Error unmarshaling return", ioexception1);
        }
        catch(Exception exception2)
        {
            throw new UnexpectedException("Unexpected exception", exception2);
        }
        finally
        {
            remoteref.done(remotecall);
        }
        return l;
    }

    private static Operation operations[] = {
        new Operation("void finalScore(int, int, int)"), new Operation("java.lang.String getGameDefinition(int)"), new Operation("int joinGame(int, int)"), new Operation("int newGame(int, int, int)")
    };
    private static final long interfaceHash = 0xf4a0944ebd67b956L;

}

