Starting to wire up client/server dobj stuff.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@22 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-06-02 01:30:37 +00:00
parent 2c3e4d9528
commit 1c6b292edc
18 changed files with 320 additions and 64 deletions
@@ -1,5 +1,5 @@
//
// $Id: AttributesChangedEvent.java,v 1.1 2001/06/01 07:12:13 mdb Exp $
// $Id: AttributesChangedEvent.java,v 1.2 2001/06/02 01:30:37 mdb Exp $
package com.threerings.cocktail.cher.dobj;
@@ -139,6 +139,19 @@ public class AttributesChangedEvent extends DEvent
return ((Double)_values[index]).doubleValue();
}
/**
* Applies this attribute change to the object.
*/
public boolean applyToObject (DObject target)
throws ObjectAccessException
{
// pass the new values on to the object
for (int i = 0; i < _count; i++) {
target.setAttribute(_names[i], _values[i]);
}
return true;
}
protected int _count;
protected String[] _names;
protected Object[] _values;
@@ -1,5 +1,5 @@
//
// $Id: Subscriber.java,v 1.2 2001/06/01 05:17:16 mdb Exp $
// $Id: Subscriber.java,v 1.3 2001/06/02 01:30:37 mdb Exp $
package com.threerings.cocktail.cher.dobj;
@@ -34,7 +34,7 @@ public interface Subscriber
* @see DObjectManager.subscribeToObject
* @see DObjectManager.fetchObject
*/
public void requestFailed (ObjectAccessException cause);
public void requestFailed (int oid, ObjectAccessException cause);
/**
* Called when an event has been dispatched on an object. The event