031331a5c3
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3037 542714f4-19e9-0310-aa3c-eee0fc999fb1
44 lines
1.3 KiB
Java
44 lines
1.3 KiB
Java
//
|
|
// $Id: GameMarshaller.java,v 1.5 2004/06/22 13:55:25 mdb Exp $
|
|
|
|
package com.threerings.parlor.game;
|
|
|
|
import com.threerings.parlor.game.GameService;
|
|
import com.threerings.presents.client.Client;
|
|
import com.threerings.presents.data.InvocationMarshaller;
|
|
import com.threerings.presents.dobj.InvocationResponseEvent;
|
|
|
|
/**
|
|
* Provides the implementation of the {@link GameService} interface
|
|
* that marshalls the arguments and delivers the request to the provider
|
|
* on the server. Also provides an implementation of the response listener
|
|
* interfaces that marshall the response arguments and deliver them back
|
|
* to the requesting client.
|
|
*/
|
|
public class GameMarshaller extends InvocationMarshaller
|
|
implements GameService
|
|
{
|
|
/** The method id used to dispatch {@link #playerReady} requests. */
|
|
public static final int PLAYER_READY = 1;
|
|
|
|
// documentation inherited from interface
|
|
public void playerReady (Client arg1)
|
|
{
|
|
sendRequest(arg1, PLAYER_READY, new Object[] {
|
|
|
|
});
|
|
}
|
|
|
|
/** The method id used to dispatch {@link #startPartyGame} requests. */
|
|
public static final int START_PARTY_GAME = 2;
|
|
|
|
// documentation inherited from interface
|
|
public void startPartyGame (Client arg1)
|
|
{
|
|
sendRequest(arg1, START_PARTY_GAME, new Object[] {
|
|
|
|
});
|
|
}
|
|
|
|
}
|