com.threerings.crowd.client
Interface LocationService

All Superinterfaces:
InvocationService<ClientObject>
All Known Implementing Classes:
LocationMarshaller

public interface LocationService
extends InvocationService<ClientObject>

The location services provide a mechanism by which the client can request to move from place to place in the server. These services should not be used directly, but instead should be accessed via the LocationDirector.


Nested Class Summary
static interface LocationService.MoveListener
          Used to communicate responses to moveTo(int, com.threerings.crowd.client.LocationService.MoveListener) requests.
 
Nested classes/interfaces inherited from interface com.threerings.presents.client.InvocationService
InvocationService.ConfirmListener, InvocationService.InvocationListener, InvocationService.ResultListener
 
Method Summary
 void leavePlace()
          Requests that we leave our current place and move to nowhere land.
 void moveTo(int placeId, LocationService.MoveListener listener)
          Requests that this client's body be moved to the specified location.
 

Method Detail

moveTo

void moveTo(int placeId,
            LocationService.MoveListener listener)
Requests that this client's body be moved to the specified location.

Parameters:
placeId - the object id of the place object to which the body should be moved.
listener - the listener that will be informed of success or failure.

leavePlace

void leavePlace()
Requests that we leave our current place and move to nowhere land.