|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.whirled.zone.server.ZoneRegistry
public class ZoneRegistry
The zone registry takes care of mapping zone requests to the appropriate registered zone manager.
| Constructor Summary | |
|---|---|
ZoneRegistry(com.threerings.presents.server.InvocationManager invmgr)
Creates a zone manager with the supplied configuration. |
|
| Method Summary | |
|---|---|
ZoneManager |
getZoneManager(int qualifiedZoneId)
Returns the zone manager that handles the specified zone id. |
String |
leaveOccupiedZone(ZonedBodyObject source)
Ejects the specified body from their current scene and zone. |
String |
moveBody(ZonedBodyObject source,
int zoneId,
int sceneId)
Ejects the specified body from their current scene and sends them a request to move to the specified new zone and scene. |
void |
moveTo(com.threerings.presents.data.ClientObject caller,
int zoneId,
int sceneId,
int sceneVer,
ZoneService.ZoneMoveListener listener)
Handles a ZoneService.moveTo(int, int, int, com.threerings.whirled.zone.client.ZoneService.ZoneMoveListener) request. |
void |
registerZoneManager(byte zoneType,
ZoneManager manager)
Registers the supplied zone manager as the manager for the specified zone type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject public ZoneRegistry(com.threerings.presents.server.InvocationManager invmgr)
| Method Detail |
|---|
public void registerZoneManager(byte zoneType,
ZoneManager manager)
public ZoneManager getZoneManager(int qualifiedZoneId)
qualifiedZoneId - the qualified zone id for which the manager should be looked up.
public String moveBody(ZonedBodyObject source,
int zoneId,
int sceneId)
LocationProvider.moveTo(com.threerings.presents.data.ClientObject, int, com.threerings.crowd.client.LocationService.MoveListener).
ZoneManager.ratifyBodyExit(com.threerings.crowd.data.BodyObject)).public String leaveOccupiedZone(ZonedBodyObject source)
LocationProvider.leavePlace(com.threerings.presents.data.ClientObject).
ZoneManager.ratifyBodyExit(com.threerings.crowd.data.BodyObject)).
public void moveTo(com.threerings.presents.data.ClientObject caller,
int zoneId,
int sceneId,
int sceneVer,
ZoneService.ZoneMoveListener listener)
throws com.threerings.presents.server.InvocationException
ZoneProviderZoneService.moveTo(int, int, int, com.threerings.whirled.zone.client.ZoneService.ZoneMoveListener) request.
moveTo in interface ZoneProvidercom.threerings.presents.server.InvocationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||