Renamed OccupantManager to OccupantDirector.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1239 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-04-15 14:38:46 +00:00
parent a6646a939a
commit f6fedf5bdf
10 changed files with 43 additions and 43 deletions
@@ -1,5 +1,5 @@
//
// $Id: OccupantManager.java,v 1.11 2002/03/18 23:21:25 mdb Exp $
// $Id: OccupantDirector.java,v 1.1 2002/04/15 14:38:45 shaper Exp $
package com.threerings.crowd.client;
@@ -15,8 +15,8 @@ import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.util.CrowdContext;
/**
* The occupant manager listens for occupants of places to enter and exit,
* and dispatches notices to interested parties about these events.
* The occupant director listens for occupants of places to enter and
* exit, and dispatches notices to interested parties about these events.
*
* <p> It will eventually provide a framework for keeping track of
* occupant information in a network efficient manner. The idea being that
@@ -35,13 +35,13 @@ import com.threerings.crowd.util.CrowdContext;
* can update non-static occupant data rather than permanently using
* what's in the cache.
*/
public class OccupantManager
public class OccupantDirector
implements LocationObserver, SetListener
{
/**
* Constructs a new occupant manager with the supplied context.
* Constructs a new occupant director with the supplied context.
*/
public OccupantManager (CrowdContext ctx)
public OccupantDirector (CrowdContext ctx)
{
// register ourselves as a location observer
ctx.getLocationDirector().addLocationObserver(this);
@@ -1,5 +1,5 @@
//
// $Id: OccupantObserver.java,v 1.2 2001/10/11 04:07:51 mdb Exp $
// $Id: OccupantObserver.java,v 1.3 2002/04/15 14:38:45 shaper Exp $
package com.threerings.crowd.client;
@@ -8,7 +8,7 @@ import com.threerings.crowd.data.OccupantInfo;
/**
* An entity that is interested in hearing about bodies that enter and
* leave a location (as well as disconnect and reconnect) can implement
* this interface and register itself with the {@link OccupantManager}.
* this interface and register itself with the {@link OccupantDirector}.
*/
public interface OccupantObserver
{
@@ -1,11 +1,11 @@
//
// $Id: CrowdContext.java,v 1.6 2001/10/11 04:07:51 mdb Exp $
// $Id: CrowdContext.java,v 1.7 2002/04/15 14:38:45 shaper Exp $
package com.threerings.crowd.util;
import com.threerings.presents.util.PresentsContext;
import com.threerings.crowd.client.LocationDirector;
import com.threerings.crowd.client.OccupantManager;
import com.threerings.crowd.client.OccupantDirector;
import com.threerings.crowd.client.PlaceView;
/**
@@ -20,9 +20,9 @@ public interface CrowdContext extends PresentsContext
public LocationDirector getLocationDirector ();
/**
* Returns a reference to the occupant manager.
* Returns a reference to the occupant director.
*/
public OccupantManager getOccupantManager ();
public OccupantDirector getOccupantDirector ();
/**
* When the client enters a new place, the location director creates a