|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.whirled.server.SceneRegistry
com.threerings.tudey.server.TudeySceneRegistry
public class TudeySceneRegistry
Provides special handling for moving between Tudey scenes.
| Nested Class Summary | |
|---|---|
protected static class |
TudeySceneRegistry.PortalMapping
Contains stored destination portal information. |
| Nested classes/interfaces inherited from class com.threerings.whirled.server.SceneRegistry |
|---|
SceneRegistry.ConfigFactory, SceneRegistry.ResolutionListener |
| Field Summary | |
|---|---|
protected ConfigManager |
_cfgmgr
The config manager. |
protected SceneTicker |
_defaultTicker
The default scene ticker. |
protected PresentsDObjectMgr |
_omgr
The server object manager. |
protected HashIntMap<TudeySceneRegistry.PortalMapping> |
_portals
Maps body oids to the keys of their destination portals. |
protected static long |
PORTAL_MAPPING_LIFESPAN
The interval after which portal mappings expire. |
protected static long |
PORTAL_PRUNE_INTERVAL
The interval at which we prune expired portal mappings. |
| Fields inherited from class com.threerings.whirled.server.SceneRegistry |
|---|
_confact, _invoker, _locator, _locman, _penders, _plreg, _scenemgrs, _scfact, _screp |
| Fields inherited from interface com.threerings.tudey.data.TudeyCodes |
|---|
DEFAULT_BUFFER_DELAY, DEFAULT_TICK_INTERVAL |
| Fields inherited from interface com.threerings.presents.data.InvocationCodes |
|---|
ACCESS_DENIED, E_ACCESS_DENIED, E_INTERNAL_ERROR, GLOBAL_GROUP, INTERNAL_ERROR |
| Fields inherited from interface com.threerings.whirled.data.SceneCodes |
|---|
SCENE_UPDATE, WHIRLED_GROUP |
| Fields inherited from interface com.threerings.crowd.data.LocationCodes |
|---|
ALREADY_THERE, MOVE_IN_PROGRESS, NO_SUCH_PLACE |
| Constructor Summary | |
|---|---|
TudeySceneRegistry(PresentsDObjectMgr omgr,
InvocationManager invmgr)
Constructs a Tudey scene registry. |
|
| Method Summary | |
|---|---|
protected void |
addPortalMapping(BodyObject source,
int sceneId,
Object portalKey)
Adds a portal mapping. |
protected SceneTicker |
createDefaultTicker()
Creates the default scene ticker. |
SceneTicker |
getDefaultTicker()
Returns a reference to the default scene ticker. |
void |
moveBody(BodyObject source,
int sceneId,
Object portalKey)
Forcibly moves a player to a new scene. |
void |
moveTo(ClientObject caller,
int sceneId,
int sceneVer,
SceneService.SceneMoveListener listener)
|
protected void |
processSuccessfulResolution(SceneModel model,
UpdateList updates,
Object extras)
|
protected void |
prunePortalMappings()
Removes all expired portal mappings. |
protected Object |
removePortalMapping(BodyObject source,
int sceneId)
Removes and returns the portal mapping for the specified body and scene, or returns null if there is none or it has expired. |
void |
resolveScene(ClientObject caller,
int sceneId,
SceneRegistry.ResolutionListener listener)
Resolves a scene for the specified caller. |
| Methods inherited from class com.threerings.whirled.server.SceneRegistry |
|---|
addResolutionListener, getSceneManager, getSceneRepository, leaveOccupiedScene, moveBody, processFailedResolution, resolveScene, sceneManagerDidStart, unmapSceneManager, where |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PresentsDObjectMgr _omgr
@Inject protected ConfigManager _cfgmgr
protected HashIntMap<TudeySceneRegistry.PortalMapping> _portals
protected SceneTicker _defaultTicker
protected static final long PORTAL_MAPPING_LIFESPAN
protected static final long PORTAL_PRUNE_INTERVAL
| Constructor Detail |
|---|
@Inject
public TudeySceneRegistry(PresentsDObjectMgr omgr,
InvocationManager invmgr)
| Method Detail |
|---|
public void moveBody(BodyObject source,
int sceneId,
Object portalKey)
portalKey - the key of the destination portal.
public void resolveScene(ClientObject caller,
int sceneId,
SceneRegistry.ResolutionListener listener)
public SceneTicker getDefaultTicker()
public void moveTo(ClientObject caller,
int sceneId,
int sceneVer,
SceneService.SceneMoveListener listener)
moveTo in interface SceneProvidermoveTo in class SceneRegistry
protected void processSuccessfulResolution(SceneModel model,
UpdateList updates,
Object extras)
processSuccessfulResolution in class SceneRegistryprotected SceneTicker createDefaultTicker()
protected void addPortalMapping(BodyObject source,
int sceneId,
Object portalKey)
protected Object removePortalMapping(BodyObject source,
int sceneId)
null if there is none or it has expired.
protected void prunePortalMappings()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||