Added support for receiving chat notifications from multiple objects. This
will probably need to be enhanced so that we can differentiate between notifications from different objects on the client and render them differently. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@804 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ChatDirector.java,v 1.12 2001/10/18 23:55:24 mdb Exp $
|
||||
// $Id: ChatDirector.java,v 1.13 2001/12/16 21:02:57 mdb Exp $
|
||||
|
||||
package com.threerings.crowd.chat;
|
||||
|
||||
@@ -111,6 +111,25 @@ public class ChatDirector
|
||||
return ChatService.tell(_ctx.getClient(), target, message, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds an additional object via which chat messages may arrive. The
|
||||
* chat director assumes the caller will be managing the subscription
|
||||
* to this object and will remain subscribed to it for as long as it
|
||||
* remains in effect as an auxilliary chat source.
|
||||
*/
|
||||
public void addAuxilliarySource (DObject source)
|
||||
{
|
||||
source.addListener(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a previously added auxilliary chat source.
|
||||
*/
|
||||
public void removeAuxilliarySource (DObject source)
|
||||
{
|
||||
source.removeListener(this);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public boolean locationMayChange (int placeId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user