dbdfd1bad0
created by a particular player; may be subsequently joined by other players; and started when any game-specific prerequisites are satisfied by the creating player submitting a GameService.startPartyGame() request. We'll likely be adding a bit more soon to allow watching players to join a party game that hasn't yet started. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1667 542714f4-19e9-0310-aa3c-eee0fc999fb1
45 lines
1.4 KiB
Java
45 lines
1.4 KiB
Java
//
|
|
// $Id: GameMarshaller.java,v 1.3 2002/09/06 22:52:27 shaper 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[] {
|
|
|
|
});
|
|
}
|
|
|
|
// Generated on 12:49:14 09/06/02.
|
|
}
|