com.threerings.crowd.server
Class BodyManager

java.lang.Object
  extended by com.threerings.crowd.server.BodyManager
All Implemented Interfaces:
BodyProvider, InvocationProvider

public class BodyManager
extends Object
implements BodyProvider

Handles body related services.


Field Summary
protected  BodyLocator _locator
           
protected  PlaceRegistry _plreg
          Provides access to place managers.
 
Constructor Summary
BodyManager(InvocationManager invmgr)
          Constructs and initializes the body manager.
 
Method Summary
 void setIdle(ClientObject caller, boolean idle)
          Handles a BodyService.setIdle(boolean) request.
<T extends OccupantInfo>
boolean
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_plreg

@Inject
protected PlaceRegistry _plreg
Provides access to place managers.


_locator

@Inject
protected BodyLocator _locator
Constructor Detail

BodyManager

@Inject
public BodyManager(InvocationManager invmgr)
Constructs and initializes the body manager.

Method Detail

updateOccupantInfo

public <T extends OccupantInfo> boolean 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).


updateOccupantStatus

public void updateOccupantStatus(BodyObject body,
                                 byte status)
Updates the connection status for the given body object's occupant info in the specified location.


setIdle

public void setIdle(ClientObject caller,
                    boolean idle)
Description copied from interface: BodyProvider
Handles a BodyService.setIdle(boolean) request.

Specified by:
setIdle in interface BodyProvider