public class SpotSceneRegistry extends SceneRegistry implements SpotProvider
SceneRegistry with spot-related services.SceneRegistry.ConfigFactory, SceneRegistry.ResolutionListenerSCENE_UPDATE, WHIRLED_GROUP| Constructor and Description |
|---|
SpotSceneRegistry(com.threerings.presents.server.InvocationManager invmgr)
Constructs a spot scene registry.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeLocation(com.threerings.presents.data.ClientObject caller,
int sceneId,
Location loc,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
|
void |
clusterSpeak(com.threerings.presents.data.ClientObject caller,
String message,
byte mode)
Handles a
SpotService.clusterSpeak(java.lang.String, byte) request. |
void |
joinCluster(com.threerings.presents.data.ClientObject caller,
int friendOid,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
|
void |
sendClusterChatMessage(int sceneId,
int speakerOid,
com.threerings.util.Name speaker,
String bundle,
String message,
byte mode)
Sends a cluster chat notification to the specified location in the specified place object
originating with the specified speaker (the speaker can be a server entity that wishes to
fake a "speak" message, in which case the bundle argument should be non-null and should
contain the id of the bundle to be used to translate the message text) and with the supplied
message content.
|
void |
sendClusterChatMessage(int sceneId,
int speakerOid,
com.threerings.crowd.chat.data.UserMessage message)
Sends a cluster chat notification to the specified location in the specified place object
originating with the specified speaker.
|
void |
traversePortal(com.threerings.presents.data.ClientObject caller,
int sceneId,
int portalId,
int destSceneVer,
SpotService.SpotSceneMoveListener listener)
|
getSceneManager, getSceneRepository, leaveOccupiedScene, moveBody, moveTo, resolveScene, where@Inject public SpotSceneRegistry(com.threerings.presents.server.InvocationManager invmgr)
public void sendClusterChatMessage(int sceneId,
int speakerOid,
com.threerings.util.Name speaker,
String bundle,
String message,
byte mode)
sceneId - the scene id in which to deliver the chat message.speakerOid - the body object id of the speaker (used to verify that they are in the
cluster in question).speaker - the username of the user that generated the message (or some special speaker
name for server messages).bundle - the bundle identifier that will be used by the client to translate the message
text (or null if the message originated from a real live human who wrote it in their native
tongue).message - the text of the chat message.public void sendClusterChatMessage(int sceneId,
int speakerOid,
com.threerings.crowd.chat.data.UserMessage message)
sceneId - the scene id in which to deliver the chat message.speakerOid - the body object id of the speaker (used to verify that they are in the
cluster in question).message - the message.public void traversePortal(com.threerings.presents.data.ClientObject caller,
int sceneId,
int portalId,
int destSceneVer,
SpotService.SpotSceneMoveListener listener)
throws com.threerings.presents.server.InvocationException
SpotProviderSpotService.traversePortal(int, int, int, com.threerings.whirled.spot.client.SpotService.SpotSceneMoveListener) request.traversePortal in interface SpotProvidercom.threerings.presents.server.InvocationExceptionpublic void changeLocation(com.threerings.presents.data.ClientObject caller,
int sceneId,
Location loc,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
throws com.threerings.presents.server.InvocationException
SpotProviderSpotService.changeLocation(int, com.threerings.whirled.spot.data.Location, com.threerings.presents.client.InvocationService.ConfirmListener) request.changeLocation in interface SpotProvidercom.threerings.presents.server.InvocationExceptionpublic void joinCluster(com.threerings.presents.data.ClientObject caller,
int friendOid,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
throws com.threerings.presents.server.InvocationException
SpotProviderSpotService.joinCluster(int, com.threerings.presents.client.InvocationService.ConfirmListener) request.joinCluster in interface SpotProvidercom.threerings.presents.server.InvocationExceptionpublic void clusterSpeak(com.threerings.presents.data.ClientObject caller,
String message,
byte mode)
SpotProviderSpotService.clusterSpeak(java.lang.String, byte) request.clusterSpeak in interface SpotProviderCopyright © 2015. All rights reserved.