com.threerings.crowd.data
Class LocationMarshaller
java.lang.Object
com.threerings.presents.data.InvocationMarshaller
com.threerings.crowd.data.LocationMarshaller
- All Implemented Interfaces:
- LocationService, Streamable, InvocationService
public class LocationMarshaller
- extends InvocationMarshaller
- implements LocationService
Provides the implementation of the LocationService 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.
LEAVE_PLACE
public static final int LEAVE_PLACE
- The method id used to dispatch
leavePlace(com.threerings.presents.client.Client) requests.
- See Also:
- Constant Field Values
MOVE_TO
public static final int MOVE_TO
- The method id used to dispatch
moveTo(com.threerings.presents.client.Client, int, com.threerings.crowd.client.LocationService.MoveListener) requests.
- See Also:
- Constant Field Values
LocationMarshaller
public LocationMarshaller()
leavePlace
public void leavePlace(Client arg1)
- Description copied from interface:
LocationService
- Requests that we leave our current place and move to nowhere land.
- Specified by:
leavePlace in interface LocationService
moveTo
public void moveTo(Client arg1,
int arg2,
LocationService.MoveListener arg3)
- Description copied from interface:
LocationService
- Requests that this client's body be moved to the specified location.
- Specified by:
moveTo in interface LocationService
- Parameters:
arg1 - a reference to the client object that defines the context in which this
invocation service should be executed.arg2 - the object id of the place object to which the body should be moved.arg3 - the listener that will be informed of success or failure.