Added the keys() function to the Map interface, replaced instances of

SimpleMap with HashMap. Discarded SimpleMap.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4122 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-05-16 21:06:06 +00:00
parent 4aa8f5a5d5
commit 64e87bb907
12 changed files with 36 additions and 85 deletions
@@ -28,7 +28,7 @@ import flash.utils.Timer;
import mx.collections.IList;
import com.threerings.util.ClassUtil;
import com.threerings.util.SimpleMap;
import com.threerings.util.HashMap;
import com.threerings.presents.dobj.DEvent;
import com.threerings.presents.dobj.DObject;
@@ -437,19 +437,19 @@ public class ClientDObjectMgr
protected var _actions :Array = new Array();
/** All of the distributed objects that are active on this client. */
protected var _ocache :SimpleMap = new SimpleMap(); //HashIntMap();
protected var _ocache :HashMap = new HashMap();
/** Objects that have been marked for death. */
protected var _dead :SimpleMap = new SimpleMap(); //HashIntMap();
protected var _dead :HashMap = new HashMap();
/** Pending object subscriptions. */
protected var _penders :SimpleMap = new SimpleMap(); //HashIntMap();
protected var _penders :HashMap = new HashMap();
/** A mapping from distributed object class to flush delay. */
protected var _delays :SimpleMap = new SimpleMap(); //HashMap();
protected var _delays :HashMap = new HashMap();
/** A set of objects waiting to be flushed. */
protected var _flushes :SimpleMap = new SimpleMap(); //HashIntMap();
protected var _flushes :HashMap = new HashMap();
/** Flushes objects every now and again. */
protected var _flushInterval :Timer;
@@ -3,7 +3,7 @@ package com.threerings.presents.client {
import mx.collections.IViewCursor;
import mx.collections.ArrayCollection;
import com.threerings.util.SimpleMap;
import com.threerings.util.HashMap;
import com.threerings.presents.data.ListenerMarshaller;
@@ -346,10 +346,10 @@ public class InvocationDirector
/** Used to keep track of invocation service listeners which will
* receive responses from invocation service requests. */
protected var _listeners :SimpleMap = new SimpleMap();
protected var _listeners :HashMap = new HashMap();
/** Used to keep track of invocation notification receivers. */
protected var _receivers :SimpleMap = new SimpleMap();
protected var _receivers :HashMap = new HashMap();
/** All registered receivers are maintained in a list so that we can
* assign receiver ids to them when we go online. */