public class PlaceManagerDelegate extends Object
Thanks to Java's lack of multiple inheritance, it will likely become necessary to factor
certain services that might be used by a variety of PlaceManager derived classes into
delegate classes because they do not fit into the single inheritance hierarchy that makes sense
for a particular application. To facilitate this process, this delegate class is provided which
the standard place manager can be made to call out to for all of the standard methods.
| Constructor and Description |
|---|
PlaceManagerDelegate() |
| Modifier and Type | Method and Description |
|---|---|
void |
bodyEntered(int bodyOid)
Called when a body enters the place.
|
void |
bodyLeft(int bodyOid)
Called when a body leaves the place.
|
void |
bodyUpdated(OccupantInfo info)
Called when a body occupant info is updated.
|
void |
didInit(PlaceConfig config)
Called when the place manager is initialized.
|
void |
didShutdown()
Called when the place manager is shut down.
|
void |
didStartup(PlaceObject plobj)
Called when the place manager is started up.
|
void |
init(PlaceManager plmgr,
RootDObjectManager omgr,
InvocationManager invmgr)
Called by the place manager when this delegate is registered with it.
|
void |
placeBecameEmpty()
Called when the last body leaves the place.
|
String |
where()
Invokes
PlaceManager.where(). |
public void init(PlaceManager plmgr, RootDObjectManager omgr, InvocationManager invmgr)
didInit(com.threerings.crowd.data.PlaceConfig), etc.public void didInit(PlaceConfig config)
public void didStartup(PlaceObject plobj)
public void didShutdown()
public void bodyEntered(int bodyOid)
public void bodyLeft(int bodyOid)
public void bodyUpdated(OccupantInfo info)
public void placeBecameEmpty()
public String where()
PlaceManager.where().Copyright © 2015. All rights reserved.