byte'd chat mode code

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1600 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2002-07-22 22:54:04 +00:00
parent 5c5038690b
commit 71c7a488c9
9 changed files with 28 additions and 26 deletions
@@ -1,5 +1,5 @@
//
// $Id: SpotSceneDirector.java,v 1.15 2002/07/22 22:26:26 ray Exp $
// $Id: SpotSceneDirector.java,v 1.16 2002/07/22 22:54:04 ray Exp $
package com.threerings.whirled.spot.client;
@@ -217,7 +217,7 @@ public class SpotSceneDirector
* @return true if a cluster speak message was delivered, false if we
* are not in a valid cluster and refused to deliver the request.
*/
public boolean requestClusterSpeak (String message, String mode)
public boolean requestClusterSpeak (String message, byte mode)
{
// make sure we're currently in a scene
DisplaySpotScene scene = (DisplaySpotScene)_scdir.getScene();
@@ -1,5 +1,5 @@
//
// $Id: SpotService.java,v 1.9 2002/07/22 22:26:26 ray Exp $
// $Id: SpotService.java,v 1.10 2002/07/22 22:54:04 ray Exp $
package com.threerings.whirled.spot.client;
@@ -56,11 +56,12 @@ public class SpotService implements SpotCodes
*/
public static void clusterSpeak (
Client client, int sceneId, int locationId, String message,
String mode, SpotSceneDirector rsptarget)
byte mode, SpotSceneDirector rsptarget)
{
InvocationDirector invdir = client.getInvocationDirector();
Object[] args = new Object[] {
new Integer(sceneId), new Integer(locationId), message, mode };
new Integer(sceneId), new Integer(locationId), message,
new Byte(mode) };
invdir.invoke(MODULE_NAME, CLUSTER_SPEAK_REQUEST, args, rsptarget);
Log.debug("Sent clusterSpeak request [sceneId=" + sceneId +
", locId=" + locationId + ", message=" + message + "].");
@@ -1,5 +1,5 @@
//
// $Id: SpotProvider.java,v 1.11 2002/07/22 22:26:26 ray Exp $
// $Id: SpotProvider.java,v 1.12 2002/07/22 22:54:04 ray Exp $
package com.threerings.whirled.spot.server;
@@ -195,7 +195,7 @@ public class SpotProvider extends InvocationProvider
*/
public void handleClusterSpeakRequest (
BodyObject source, int invid, int sceneId, int locId, String message,
String mode)
byte mode)
{
sendClusterChatMessage(sceneId, locId, source.getOid(),
source.username, null, message, mode);
@@ -222,7 +222,7 @@ public class SpotProvider extends InvocationProvider
*/
public static void sendClusterChatMessage (
int sceneId, int locId, int speakerOid, String speaker,
String bundle, String message, String mode)
String bundle, String message, byte mode)
{
// look up the scene manager for the specified scene
SpotSceneManager smgr = (SpotSceneManager)
@@ -1,5 +1,5 @@
//
// $Id: SpotSceneManager.java,v 1.14 2002/07/22 22:26:26 ray Exp $
// $Id: SpotSceneManager.java,v 1.15 2002/07/22 22:54:04 ray Exp $
package com.threerings.whirled.spot.server;
@@ -218,7 +218,7 @@ public class SpotSceneManager extends SceneManager
*/
protected void handleClusterSpeakRequest (
int sourceOid, String source, int locationId,
String bundle, String message, String mode)
String bundle, String message, byte mode)
{
// make sure this user occupies the specified location
int locidx = _sscene.getLocationIndex(locationId);