|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.crowd.server.LocationManager
public class LocationManager
Handles location-related services.
| Field Summary | |
|---|---|
protected ClientManager |
_clmgr
|
protected BodyLocator |
_locator
|
protected RootDObjectManager |
_omgr
|
protected PlaceRegistry |
_plreg
|
| Fields inherited from interface com.threerings.crowd.data.LocationCodes |
|---|
ALREADY_THERE, MOVE_IN_PROGRESS, NO_SUCH_PLACE |
| Fields inherited from interface com.threerings.presents.data.InvocationCodes |
|---|
ACCESS_DENIED, E_ACCESS_DENIED, E_INTERNAL_ERROR, GLOBAL_GROUP, INTERNAL_ERROR |
| Constructor Summary | |
|---|---|
LocationManager(InvocationManager invmgr)
|
|
| Method Summary | |
|---|---|
void |
leaveOccupiedPlace(BodyObject source)
Removes the specified body from the place object they currently occupy. |
void |
leavePlace(ClientObject caller)
Handles a LocationService.leavePlace() request. |
void |
moveBody(BodyObject source,
Place place)
Forcibly moves the specified body object to the new place. |
PlaceConfig |
moveTo(BodyObject source,
int placeOid)
Moves the specified body from whatever location they currently occupy to the location identified by the supplied place oid. |
void |
moveTo(ClientObject caller,
int placeOid,
LocationService.MoveListener listener)
Handles a LocationService.moveTo(int, com.threerings.crowd.client.LocationService.MoveListener) request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Inject protected RootDObjectManager _omgr
@Inject protected BodyLocator _locator
@Inject protected ClientManager _clmgr
@Inject protected PlaceRegistry _plreg
| Constructor Detail |
|---|
@Inject public LocationManager(InvocationManager invmgr)
| Method Detail |
|---|
public void moveTo(ClientObject caller,
int placeOid,
LocationService.MoveListener listener)
throws InvocationException
LocationProviderLocationService.moveTo(int, com.threerings.crowd.client.LocationService.MoveListener) request.
moveTo in interface LocationProviderInvocationExceptionpublic void leavePlace(ClientObject caller)
LocationProviderLocationService.leavePlace() request.
leavePlace in interface LocationProvider
public PlaceConfig moveTo(BodyObject source,
int placeOid)
throws InvocationException
InvocationException - thrown if the move was not successful for some reason
(which will be communicated as an error code in the exception's message data).public void leaveOccupiedPlace(BodyObject source)
public void moveBody(BodyObject source,
Place place)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||