// 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_Skel.java

package boggle.server;

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

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

public final class gameServer_Skel
    implements Skeleton
{

    public Operation[] getOperations()
    {
        return operations;
    }

    public void dispatch(Remote remote, RemoteCall remotecall, int i, long l)
        throws RemoteException, Exception
    {
        if(l != 0xf4a0944ebd67b956L)
            throw new SkeletonMismatchException("Hash mismatch");
        gameServer gameserver = (gameServer)remote;
        switch(i)
        {
        case 0: // '\0'
            int j;
            int k1;
            int j2;
            try
            {
                java.io.ObjectInput objectinput2 = remotecall.getInputStream();
                j = objectinput2.readInt();
                k1 = objectinput2.readInt();
                j2 = objectinput2.readInt();
            }
            catch(IOException ioexception6)
            {
                throw new UnmarshalException("Error unmarshaling arguments", ioexception6);
            }
            finally
            {
                remotecall.releaseInputStream();
            }
            gameserver.finalScore(j, k1, j2);
            try
            {
                remotecall.getResultStream(true);
                return;
            }
            catch(IOException ioexception1)
            {
                throw new MarshalException("Error marshaling return", ioexception1);
            }

        case 1: // '\001'
            int k;
            try
            {
                java.io.ObjectInput objectinput = remotecall.getInputStream();
                k = objectinput.readInt();
            }
            catch(IOException ioexception2)
            {
                throw new UnmarshalException("Error unmarshaling arguments", ioexception2);
            }
            finally
            {
                remotecall.releaseInputStream();
            }
            String s = gameserver.getGameDefinition(k);
            try
            {
                ObjectOutput objectoutput = remotecall.getResultStream(true);
                objectoutput.writeObject(s);
                return;
            }
            catch(IOException ioexception)
            {
                throw new MarshalException("Error marshaling return", ioexception);
            }

        case 2: // '\002'
            int i1;
            int l1;
            try
            {
                java.io.ObjectInput objectinput1 = remotecall.getInputStream();
                i1 = objectinput1.readInt();
                l1 = objectinput1.readInt();
            }
            catch(IOException ioexception4)
            {
                throw new UnmarshalException("Error unmarshaling arguments", ioexception4);
            }
            finally
            {
                remotecall.releaseInputStream();
            }
            int k2 = gameserver.joinGame(i1, l1);
            try
            {
                ObjectOutput objectoutput1 = remotecall.getResultStream(true);
                objectoutput1.writeInt(k2);
                return;
            }
            catch(IOException ioexception3)
            {
                throw new MarshalException("Error marshaling return", ioexception3);
            }

        case 3: // '\003'
            int j1;
            int i2;
            int l2;
            try
            {
                java.io.ObjectInput objectinput3 = remotecall.getInputStream();
                j1 = objectinput3.readInt();
                i2 = objectinput3.readInt();
                l2 = objectinput3.readInt();
            }
            catch(IOException ioexception7)
            {
                throw new UnmarshalException("Error unmarshaling arguments", ioexception7);
            }
            finally
            {
                remotecall.releaseInputStream();
            }
            int i3 = gameserver.newGame(j1, i2, l2);
            try
            {
                ObjectOutput objectoutput2 = remotecall.getResultStream(true);
                objectoutput2.writeInt(i3);
                return;
            }
            catch(IOException ioexception5)
            {
                throw new MarshalException("Error marshaling return", ioexception5);
            }
        }
        throw new RemoteException("Method number out of range");
    }

    public gameServer_Skel()
    {
    }

    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;

}
