com.threerings.tudey.server
Class TudeySceneRegistry
java.lang.Object
com.threerings.whirled.server.SceneRegistry
com.threerings.tudey.server.TudeySceneRegistry
- All Implemented Interfaces:
- com.threerings.crowd.data.LocationCodes, com.threerings.presents.data.InvocationCodes, com.threerings.presents.server.InvocationProvider, TudeyCodes, com.threerings.whirled.data.SceneCodes, com.threerings.whirled.server.SceneProvider
public class TudeySceneRegistry
- extends com.threerings.whirled.server.SceneRegistry
- implements TudeyCodes
Provides special handling for moving between Tudey scenes.
| Nested classes/interfaces inherited from class com.threerings.whirled.server.SceneRegistry |
com.threerings.whirled.server.SceneRegistry.ConfigFactory, com.threerings.whirled.server.SceneRegistry.ResolutionListener |
| 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(com.threerings.presents.server.PresentsDObjectMgr omgr,
com.threerings.presents.server.InvocationManager invmgr)
Constructs a Tudey scene registry. |
|
Method Summary |
SceneTicker |
getDefaultTicker()
Returns a reference to the default scene ticker. |
void |
moveBody(com.threerings.crowd.data.BodyObject source,
int sceneId,
Object portalKey)
Forcibly moves a player to a new scene. |
void |
moveTo(com.threerings.presents.data.ClientObject caller,
int sceneId,
int sceneVer,
com.threerings.whirled.client.SceneService.SceneMoveListener listener)
|
void |
resolveScene(com.threerings.presents.data.ClientObject caller,
int sceneId,
com.threerings.whirled.server.SceneRegistry.ResolutionListener listener)
Resolves a scene for the specified caller. |
| Methods inherited from class com.threerings.whirled.server.SceneRegistry |
getSceneManager, getSceneRepository, leaveOccupiedScene, moveBody, resolveScene, where |
TudeySceneRegistry
@Inject
public TudeySceneRegistry(com.threerings.presents.server.PresentsDObjectMgr omgr,
com.threerings.presents.server.InvocationManager invmgr)
- Constructs a Tudey scene registry.
moveBody
public void moveBody(com.threerings.crowd.data.BodyObject source,
int sceneId,
Object portalKey)
- Forcibly moves a player to a new scene.
- Parameters:
portalKey - the key of the destination portal.
resolveScene
public void resolveScene(com.threerings.presents.data.ClientObject caller,
int sceneId,
com.threerings.whirled.server.SceneRegistry.ResolutionListener listener)
- Resolves a scene for the specified caller.
getDefaultTicker
public SceneTicker getDefaultTicker()
- Returns a reference to the default scene ticker.
moveTo
public void moveTo(com.threerings.presents.data.ClientObject caller,
int sceneId,
int sceneVer,
com.threerings.whirled.client.SceneService.SceneMoveListener listener)
- Specified by:
moveTo in interface com.threerings.whirled.server.SceneProvider- Overrides:
moveTo in class com.threerings.whirled.server.SceneRegistry
Copyright © 2011. All Rights Reserved.