Created SceneCodes, moved scene invocation service codes into there.

Changed SceneManager to SceneDirector. Updated to deal with
LocationManager name change. Clean, clean, clean.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@369 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-01 22:16:02 +00:00
parent 027bb29769
commit 64bed2eb12
6 changed files with 54 additions and 39 deletions
@@ -1,5 +1,5 @@
//
// $Id: SceneService.java,v 1.2 2001/08/14 06:51:07 mdb Exp $
// $Id: SceneService.java,v 1.3 2001/10/01 22:16:02 mdb Exp $
package com.threerings.whirled.client;
@@ -12,11 +12,8 @@ import com.threerings.whirled.Log;
* The scene service class provides the client interface to the scene
* related invocation services (e.g. moving from scene to scene).
*/
public class SceneService
public class SceneService implements SceneCodes
{
/** The module name for the scene services. */
public static final String MODULE = "whirled!scene";
/**
* Requests that that this client's body be moved to the specified
* scene.
@@ -26,12 +23,12 @@ public class SceneService
* have in our local repository.
*/
public static void moveTo (Client client, int sceneId,
int sceneVers, SceneManager rsptarget)
int sceneVers, SceneDirector rsptarget)
{
InvocationManager invmgr = client.getInvocationManager();
Object[] args = new Object[] {
new Integer(sceneId), new Integer(sceneVers) };
invmgr.invoke(MODULE, "MoveTo", args, rsptarget);
invmgr.invoke(MODULE_NAME, MOVE_TO_REQUEST, args, rsptarget);
Log.info("Sent moveTo request [scene=" + sceneId +
", version=" + sceneVers + "].");
}