- Adding support for booting players from a table
- Apparently genservice hasn't been run in a while, so half of vilya just got poked git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@709 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -25,6 +25,7 @@ import com.threerings.parlor.tourney.client.TourneyService;
|
||||
import com.threerings.presents.client.Client;
|
||||
import com.threerings.presents.client.InvocationService;
|
||||
import com.threerings.presents.data.InvocationMarshaller;
|
||||
import com.threerings.presents.net.Transport;
|
||||
|
||||
/**
|
||||
* Provides the implementation of the {@link TourneyService} interface
|
||||
|
||||
@@ -25,6 +25,7 @@ import com.threerings.parlor.tourney.client.TourniesService;
|
||||
import com.threerings.presents.client.Client;
|
||||
import com.threerings.presents.client.InvocationService;
|
||||
import com.threerings.presents.data.InvocationMarshaller;
|
||||
import com.threerings.presents.net.Transport;
|
||||
|
||||
/**
|
||||
* Provides the implementation of the {@link TourniesService} interface
|
||||
|
||||
@@ -24,6 +24,7 @@ package com.threerings.parlor.tourney.server;
|
||||
import com.threerings.parlor.tourney.data.TourneyMarshaller;
|
||||
import com.threerings.presents.client.InvocationService;
|
||||
import com.threerings.presents.data.ClientObject;
|
||||
import com.threerings.presents.data.InvocationMarshaller;
|
||||
import com.threerings.presents.server.InvocationDispatcher;
|
||||
import com.threerings.presents.server.InvocationException;
|
||||
|
||||
@@ -47,6 +48,7 @@ public class TourneyDispatcher extends InvocationDispatcher<TourneyMarshaller>
|
||||
return new TourneyMarshaller();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override // documentation inherited
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
@@ -55,19 +57,22 @@ public class TourneyDispatcher extends InvocationDispatcher<TourneyMarshaller>
|
||||
switch (methodId) {
|
||||
case TourneyMarshaller.CANCEL:
|
||||
((TourneyProvider)provider).cancel(
|
||||
source, (InvocationService.ConfirmListener)args[0]
|
||||
source,
|
||||
(InvocationService.ConfirmListener)args[0]
|
||||
);
|
||||
return;
|
||||
|
||||
case TourneyMarshaller.JOIN:
|
||||
((TourneyProvider)provider).join(
|
||||
source, (InvocationService.ConfirmListener)args[0]
|
||||
source,
|
||||
(InvocationService.ConfirmListener)args[0]
|
||||
);
|
||||
return;
|
||||
|
||||
case TourneyMarshaller.LEAVE:
|
||||
((TourneyProvider)provider).leave(
|
||||
source, (InvocationService.ConfirmListener)args[0]
|
||||
source,
|
||||
(InvocationService.ConfirmListener)args[0]
|
||||
);
|
||||
return;
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
package com.threerings.parlor.tourney.server;
|
||||
|
||||
import com.threerings.parlor.tourney.client.TourneyService;
|
||||
import com.threerings.presents.client.InvocationService;
|
||||
import com.threerings.presents.data.ClientObject;
|
||||
import com.threerings.presents.server.InvocationException;
|
||||
@@ -35,18 +34,18 @@ public interface TourneyProvider extends InvocationProvider
|
||||
/**
|
||||
* Handles a {@link TourneyService#cancel} request.
|
||||
*/
|
||||
void cancel (ClientObject caller, InvocationService.ConfirmListener arg1)
|
||||
public void cancel (ClientObject caller, InvocationService.ConfirmListener arg1)
|
||||
throws InvocationException;
|
||||
|
||||
/**
|
||||
* Handles a {@link TourneyService#join} request.
|
||||
*/
|
||||
void join (ClientObject caller, InvocationService.ConfirmListener arg1)
|
||||
public void join (ClientObject caller, InvocationService.ConfirmListener arg1)
|
||||
throws InvocationException;
|
||||
|
||||
/**
|
||||
* Handles a {@link TourneyService#leave} request.
|
||||
*/
|
||||
void leave (ClientObject caller, InvocationService.ConfirmListener arg1)
|
||||
public void leave (ClientObject caller, InvocationService.ConfirmListener arg1)
|
||||
throws InvocationException;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ import com.threerings.parlor.tourney.data.TourneyConfig;
|
||||
import com.threerings.parlor.tourney.data.TourniesMarshaller;
|
||||
import com.threerings.presents.client.InvocationService;
|
||||
import com.threerings.presents.data.ClientObject;
|
||||
import com.threerings.presents.data.InvocationMarshaller;
|
||||
import com.threerings.presents.server.InvocationDispatcher;
|
||||
import com.threerings.presents.server.InvocationException;
|
||||
|
||||
@@ -48,6 +49,7 @@ public class TourniesDispatcher extends InvocationDispatcher<TourniesMarshaller>
|
||||
return new TourniesMarshaller();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override // documentation inherited
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
@@ -56,7 +58,8 @@ public class TourniesDispatcher extends InvocationDispatcher<TourniesMarshaller>
|
||||
switch (methodId) {
|
||||
case TourniesMarshaller.CREATE_TOURNEY:
|
||||
((TourniesProvider)provider).createTourney(
|
||||
source, (TourneyConfig)args[0], (InvocationService.ResultListener)args[1]
|
||||
source,
|
||||
(TourneyConfig)args[0], (InvocationService.ResultListener)args[1]
|
||||
);
|
||||
return;
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
package com.threerings.parlor.tourney.server;
|
||||
|
||||
import com.threerings.parlor.tourney.client.TourniesService;
|
||||
import com.threerings.parlor.tourney.data.TourneyConfig;
|
||||
import com.threerings.presents.client.InvocationService;
|
||||
import com.threerings.presents.data.ClientObject;
|
||||
@@ -36,6 +35,6 @@ public interface TourniesProvider extends InvocationProvider
|
||||
/**
|
||||
* Handles a {@link TourniesService#createTourney} request.
|
||||
*/
|
||||
void createTourney (ClientObject caller, TourneyConfig arg1, InvocationService.ResultListener arg2)
|
||||
public void createTourney (ClientObject caller, TourneyConfig arg1, InvocationService.ResultListener arg2)
|
||||
throws InvocationException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user