The great invocation services rethink of 2002! Rearchitected the remote
method invocation services and converted everything to the new style. Could this be my biggest checkin ever? git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1642 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
//
|
||||
// $Id: PlaceObject.java,v 1.6 2002/04/15 14:35:31 shaper Exp $
|
||||
// $Id: PlaceObject.java,v 1.7 2002/08/14 19:07:49 mdb Exp $
|
||||
|
||||
package com.threerings.crowd.data;
|
||||
|
||||
import com.threerings.presents.dobj.*;
|
||||
import com.threerings.presents.dobj.DObject;
|
||||
import com.threerings.presents.dobj.DSet;
|
||||
import com.threerings.presents.dobj.OidList;
|
||||
|
||||
import com.threerings.crowd.chat.SpeakMarshaller;
|
||||
|
||||
public class PlaceObject extends DObject
|
||||
{
|
||||
@@ -13,6 +17,9 @@ public class PlaceObject extends DObject
|
||||
/** The field name of the <code>occupantInfo</code> field. */
|
||||
public static final String OCCUPANT_INFO = "occupantInfo";
|
||||
|
||||
/** The field name of the <code>speakService</code> field. */
|
||||
public static final String SPEAK_SERVICE = "speakService";
|
||||
|
||||
/**
|
||||
* Tracks the oid of the body objects of all of the occupants of this
|
||||
* place.
|
||||
@@ -26,6 +33,9 @@ public class PlaceObject extends DObject
|
||||
*/
|
||||
public DSet occupantInfo = new DSet();
|
||||
|
||||
/** Used to generate speak requests on this place object. */
|
||||
public SpeakMarshaller speakService;
|
||||
|
||||
/**
|
||||
* Requests that the specified oid be added to the
|
||||
* <code>occupants</code> oid list. The list will not change until the
|
||||
@@ -91,4 +101,18 @@ public class PlaceObject extends DObject
|
||||
this.occupantInfo = occupantInfo;
|
||||
requestAttributeChange(OCCUPANT_INFO, occupantInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* Requests that the <code>speakService</code> field be set to the specified
|
||||
* value. The local value will be updated immediately and an event
|
||||
* will be propagated through the system to notify all listeners that
|
||||
* the attribute did change. Proxied copies of this object (on
|
||||
* clients) will apply the value change when they received the
|
||||
* attribute changed notification.
|
||||
*/
|
||||
public void setSpeakService (SpeakMarshaller speakService)
|
||||
{
|
||||
this.speakService = speakService;
|
||||
requestAttributeChange(SPEAK_SERVICE, speakService);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user