Added support for think and emote.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1599 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ChatDirector.java,v 1.25 2002/07/17 20:53:31 shaper Exp $
|
||||
// $Id: ChatDirector.java,v 1.26 2002/07/22 22:26:26 ray Exp $
|
||||
|
||||
package com.threerings.crowd.chat;
|
||||
|
||||
@@ -351,21 +351,24 @@ public class ChatDirector
|
||||
}
|
||||
|
||||
String bundle = null;
|
||||
String message = null;
|
||||
String message, mode;
|
||||
|
||||
// determine whether this speak message originated from another
|
||||
// client or from a server entity
|
||||
if (args.length == 2) {
|
||||
if (args.length == 3) {
|
||||
message = (String)args[1];
|
||||
mode = (String) args[2];
|
||||
|
||||
} else {
|
||||
bundle = (String)args[1];
|
||||
message = (String)args[2];
|
||||
mode = (String) args[3];
|
||||
}
|
||||
|
||||
// pass this on to our chat displays
|
||||
for (int i = 0; i < _displays.size(); i++) {
|
||||
ChatDisplay display = (ChatDisplay)_displays.get(i);
|
||||
display.displaySpeakMessage(type, speaker, bundle, message);
|
||||
display.displaySpeakMessage(type, speaker, bundle, message, mode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ChatDisplay.java,v 1.10 2002/07/17 20:53:31 shaper Exp $
|
||||
// $Id: ChatDisplay.java,v 1.11 2002/07/22 22:26:26 ray Exp $
|
||||
|
||||
package com.threerings.crowd.chat;
|
||||
|
||||
@@ -27,9 +27,13 @@ public interface ChatDisplay
|
||||
* contain a bundle identifier that should be used to translate the
|
||||
* message text.
|
||||
* @param message the text of the message.
|
||||
* @param mode the mode of the speak (@see ChatCodes.DEFAULT_MODE
|
||||
* @see ChatCodes.THINK_MODE,
|
||||
* @see ChatCodes.EMOTE_MODE ).
|
||||
*/
|
||||
public void displaySpeakMessage (
|
||||
String type, String speaker, String bundle, String message);
|
||||
String type, String speaker, String bundle, String message,
|
||||
String mode);
|
||||
|
||||
/**
|
||||
* Called to display a tell message. A tell message is one that is
|
||||
|
||||
Reference in New Issue
Block a user