Revamped location and cluster handling so that we can implement the fancy

new dynamic cluster system all good and proper.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2330 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-03-26 02:06:06 +00:00
parent a3ff1486e0
commit 5d6883c75c
6 changed files with 245 additions and 234 deletions
@@ -1,5 +1,5 @@
//
// $Id: SpotService.java,v 1.13 2003/02/13 21:55:22 mdb Exp $
// $Id: SpotService.java,v 1.14 2003/03/26 02:06:06 mdb Exp $
package com.threerings.whirled.spot.client;
@@ -28,30 +28,26 @@ public interface SpotService extends InvocationService
Client client, int portalId, int destSceneVer,
SceneMoveListener listener);
/**
* Used to communicate responses to a {@link #changeLoc} request.
*/
public static interface ChangeLocListener extends InvocationListener
{
/**
* Called when the change location request succeeds.
*/
public void changeLocSucceeded ();
}
/**
* Requests that this client's body be made to move to the specified
* location.
* location. The user will be removed from any cluster from which they
* are an occupant.
*
* @param loc the location to which to move.
* @param cluster if -1, the calling user will be removed from any
* cluster they currently occupy and not made to occupy a new cluster;
* if the bodyOid of another user, the calling user will be made to
* join the target user's cluster, or create a cluster with the target
* user if they are not already in one.
*/
public void changeLoc (Client client, Location loc, int cluster,
ChangeLocListener listener);
public void changeLocation (Client client, Location loc,
ConfirmListener listener);
/**
* Requests that this client start or join the specified cluster. They
* will be relocated appropriately by the scene manager.
*
* @param friendOid the bodyOid of another user; the calling user will
* be made to join the target user's cluster, or create a cluster with
* the target user if they are not already in one.
*/
public void joinCluster (Client client, int friendOid,
ConfirmListener listener);
/**
* Requests that the supplied message be delivered to listeners in the