Compound events need to propagate their source oid to their constituent

events after setting their own source oid.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1137 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-03-20 03:29:21 +00:00
parent 35df145846
commit 81e8158e90
@@ -1,5 +1,5 @@
//
// $Id: CompoundEvent.java,v 1.2 2002/02/21 00:59:29 mdb Exp $
// $Id: CompoundEvent.java,v 1.3 2002/03/20 03:29:21 mdb Exp $
package com.threerings.presents.dobj;
@@ -93,6 +93,19 @@ public class CompoundEvent extends TypedEvent
_events.clear();
}
/**
* We need to propagate our source oid to our constituent events.
*/
public void setSourceOid (int sourceOid)
{
super.setSourceOid(sourceOid);
int ecount = _events.size();
for (int i = 0; i < ecount; i++) {
((DEvent)_events.get(i)).setSourceOid(sourceOid);
}
}
/**
* Nothing to apply here.
*/