com.threerings.crowd.data
Class LocationMarshaller

java.lang.Object
  extended by com.threerings.presents.data.InvocationMarshaller<ClientObject>
      extended by com.threerings.crowd.data.LocationMarshaller
All Implemented Interfaces:
LocationService, Streamable, InvocationService<ClientObject>

@Generated(value="com.threerings.presents.tools.GenServiceTask",
           comments="Derived from LocationService.java.")
public class LocationMarshaller
extends InvocationMarshaller<ClientObject>
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.


Nested Class Summary
static class LocationMarshaller.MoveMarshaller
          Marshalls results to implementations of LocationService.MoveListener.
 
Nested classes/interfaces inherited from class com.threerings.presents.data.InvocationMarshaller
InvocationMarshaller.ConfirmMarshaller, InvocationMarshaller.ListenerMarshaller, InvocationMarshaller.ResultMarshaller
 
Nested classes/interfaces inherited from interface com.threerings.crowd.client.LocationService
LocationService.MoveListener
 
Nested classes/interfaces inherited from interface com.threerings.presents.client.InvocationService
InvocationService.ConfirmListener, InvocationService.InvocationListener, InvocationService.ResultListener
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
static int LEAVE_PLACE
          The method id used to dispatch leavePlace() requests.
static int MOVE_TO
          The method id used to dispatch moveTo(int, com.threerings.crowd.client.LocationService.MoveListener) requests.
 
Fields inherited from class com.threerings.presents.data.InvocationMarshaller
_invCode, _invdir, _invOid
 
Constructor Summary
LocationMarshaller()
           
 
Method Summary
 void leavePlace()
          Requests that we leave our current place and move to nowhere land.
 void moveTo(int arg1, LocationService.MoveListener arg2)
          Requests that this client's body be moved to the specified location.
 
Methods inherited from class com.threerings.presents.data.InvocationMarshaller
getInvocationCode, init, readObject, sendRequest, sendRequest, sendRequest, sendRequest, setInvocationOid, setNoResponse, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LEAVE_PLACE

public static final int LEAVE_PLACE
The method id used to dispatch leavePlace() requests.

See Also:
Constant Field Values

MOVE_TO

public static final int MOVE_TO
The method id used to dispatch moveTo(int, com.threerings.crowd.client.LocationService.MoveListener) requests.

See Also:
Constant Field Values
Constructor Detail

LocationMarshaller

public LocationMarshaller()
Method Detail

leavePlace

public void leavePlace()
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(int arg1,
                   LocationService.MoveListener arg2)
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 - the object id of the place object to which the body should be moved.
arg2 - the listener that will be informed of success or failure.