com.threerings.crowd.client
Interface LocationService

All Superinterfaces:
InvocationService
All Known Implementing Classes:
LocationMarshaller

public interface LocationService
extends InvocationService

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(com.threerings.presents.client.Client, 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(Client client)
          Requests that we leave our current place and move to nowhere land.
 void moveTo(Client client, int placeId, LocationService.MoveListener listener)
          Requests that this client's body be moved to the specified location.
 

Method Detail

moveTo

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

Parameters:
client - a reference to the client object that defines the context in which this invocation service should be executed.
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(Client client)
Requests that we leave our current place and move to nowhere land.