public class BodyManager extends Object implements BodyProvider
| Constructor and Description |
|---|
BodyManager(InvocationManager invmgr)
Constructs and initializes the body manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setIdle(ClientObject caller,
boolean idle)
Handles a
BodyService.setIdle(boolean) request. |
<T extends OccupantInfo> |
updateOccupantInfo(BodyObject body,
OccupantInfo.Updater<T> updater)
Locates the specified body's occupant info in the specified location, applies the supplied
occupant info operation to it and then broadcasts the updated info (assuming the occop
returned true indicating that an update was made).
|
void |
updateOccupantStatus(BodyObject body,
byte status)
Updates the connection status for the given body object's occupant info in the specified
location.
|
@Inject public BodyManager(InvocationManager invmgr)
public <T extends OccupantInfo> boolean updateOccupantInfo(BodyObject body, OccupantInfo.Updater<T> updater)
public void updateOccupantStatus(BodyObject body, byte status)
public void setIdle(ClientObject caller, boolean idle)
BodyProviderBodyService.setIdle(boolean) request.setIdle in interface BodyProviderCopyright © 2015. All rights reserved.