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. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@375 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
//
|
||||
// $Id: SceneDirector.java,v 1.3 2001/10/01 22:16:02 mdb Exp $
|
||||
// $Id: SceneDirector.java,v 1.4 2001/10/02 02:08:16 mdb Exp $
|
||||
|
||||
package com.threerings.whirled.client;
|
||||
|
||||
import java.io.IOException;
|
||||
import com.samskivert.util.HashIntMap;
|
||||
|
||||
import com.threerings.cocktail.cher.dobj.DObject;
|
||||
import com.threerings.cocktail.cher.dobj.ObjectAccessException;
|
||||
import com.threerings.cocktail.cher.util.IntMap;
|
||||
|
||||
import com.threerings.cocktail.party.client.LocationDirector;
|
||||
import com.threerings.cocktail.party.client.LocationObserver;
|
||||
@@ -200,7 +200,7 @@ public class SceneDirector
|
||||
|
||||
protected WhirledContext _ctx;
|
||||
protected SceneRepository _screp;
|
||||
protected IntMap _scache = new IntMap();
|
||||
protected HashIntMap _scache = new HashIntMap();
|
||||
|
||||
/** The scene object of the scene we currently occupy. */
|
||||
protected Scene _scene;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
//
|
||||
// $Id: SceneService.java,v 1.3 2001/10/01 22:16:02 mdb Exp $
|
||||
// $Id: SceneService.java,v 1.4 2001/10/02 02:08:16 mdb Exp $
|
||||
|
||||
package com.threerings.whirled.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.whirled.Log;
|
||||
|
||||
@@ -25,10 +25,10 @@ public class SceneService implements SceneCodes
|
||||
public static void moveTo (Client client, int sceneId,
|
||||
int sceneVers, SceneDirector rsptarget)
|
||||
{
|
||||
InvocationManager invmgr = client.getInvocationManager();
|
||||
InvocationDirector invdir = client.getInvocationDirector();
|
||||
Object[] args = new Object[] {
|
||||
new Integer(sceneId), new Integer(sceneVers) };
|
||||
invmgr.invoke(MODULE_NAME, MOVE_TO_REQUEST, args, rsptarget);
|
||||
invdir.invoke(MODULE_NAME, MOVE_TO_REQUEST, args, rsptarget);
|
||||
Log.info("Sent moveTo request [scene=" + sceneId +
|
||||
", version=" + sceneVers + "].");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user