We've always been at war with Eurasia. Changed InvocationManager to

InvocationDirector (please god let the renaming be done). Removed IntMap
and modified code to use samskivert's HashIntMap.

Also modified PlaceManager and PlaceRegistry such that there is no
Properties object supplied for configuration (let the derived classes sort
out how they want to configure their managers) and so that the
PlaceManager tells the PlaceRegistry what sort of PlaceObject derived
class it wants to manage rather than having that come from the
configuration.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@374 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-02 02:07:50 +00:00
parent 9e7b10b31c
commit 1f663669c9
7 changed files with 81 additions and 124 deletions
@@ -1,10 +1,10 @@
//
// $Id: LocationService.java,v 1.2 2001/10/01 22:14:55 mdb Exp $
// $Id: LocationService.java,v 1.3 2001/10/02 02:07:50 mdb Exp $
package com.threerings.cocktail.party.client;
import com.threerings.cocktail.cher.client.Client;
import com.threerings.cocktail.cher.client.InvocationManager;
import com.threerings.cocktail.cher.client.InvocationDirector;
import com.threerings.cocktail.party.Log;
/**
@@ -24,9 +24,9 @@ public class LocationService implements LocationCodes
public static void moveTo (Client client, int placeId,
LocationDirector rsptarget)
{
InvocationManager invmgr = client.getInvocationManager();
InvocationDirector invdir = client.getInvocationDirector();
Object[] args = new Object[] { new Integer(placeId) };
invmgr.invoke(MODULE_NAME, MOVE_TO_REQUEST, args, rsptarget);
invdir.invoke(MODULE_NAME, MOVE_TO_REQUEST, args, rsptarget);
Log.info("Sent moveTo request [place=" + placeId + "].");
}
}