Created client-side message objects which are the only thing passed

to the newly simplified ChatDisplay interface, which now has but one method.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1620 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2002-07-26 20:35:02 +00:00
parent ea5e5adbad
commit ef52f31ad4
9 changed files with 231 additions and 259 deletions
@@ -0,0 +1,27 @@
//
// $Id: UserMessage.java,v 1.1 2002/07/26 20:35:01 ray Exp $
package com.threerings.crowd.chat;
/**
* A ChatMessage representing a message that came from another user.
*/
public class UserMessage extends ChatMessage
{
/** The user that the message came from. */
public String speaker;
/** The mode of the message. @see ChatCodes.DEFAULT_MODE */
public byte mode;
/**
* Construct a user message.
*/
public UserMessage (String message, String localtype,
String speaker, byte mode)
{
super(message, localtype);
this.speaker = speaker;
this.mode = mode;
}
}