More documentation cleanups, widening.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@357 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -55,8 +55,8 @@ import com.threerings.whirled.data.SceneUpdate;
|
|||||||
* LocationObserver#locationChangeFailed}.
|
* LocationObserver#locationChangeFailed}.
|
||||||
*/
|
*/
|
||||||
public class SceneDirector extends BasicDirector
|
public class SceneDirector extends BasicDirector
|
||||||
implements SceneCodes, LocationDirector.FailureHandler,
|
implements SceneCodes, LocationDirector.FailureHandler, SceneReceiver,
|
||||||
SceneReceiver, SceneService.SceneMoveListener
|
SceneService.SceneMoveListener
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Used to recover from a problem after a completed moveTo.
|
* Used to recover from a problem after a completed moveTo.
|
||||||
@@ -348,20 +348,8 @@ public class SceneDirector extends BasicDirector
|
|||||||
clearScene();
|
clearScene();
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited from interface
|
|
||||||
public void forcedMove (int sceneId)
|
|
||||||
{
|
|
||||||
Log.info("Moving at request of server [sceneId=" + sceneId + "].");
|
|
||||||
|
|
||||||
// clear out our old scene and place data
|
|
||||||
didLeaveScene();
|
|
||||||
|
|
||||||
// move to the new scene
|
|
||||||
moveTo(sceneId);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the moveHandler for use in recoverFailedMove.
|
* Sets the moveHandler for use in {@link #recoverFailedMove}.
|
||||||
*/
|
*/
|
||||||
public void setMoveHandler (MoveHandler handler)
|
public void setMoveHandler (MoveHandler handler)
|
||||||
{
|
{
|
||||||
@@ -376,9 +364,19 @@ public class SceneDirector extends BasicDirector
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
// from interface SceneReceiver
|
||||||
* Called when something breaks down in the process of performing a {@link #moveTo} request.
|
public void forcedMove (int sceneId)
|
||||||
*/
|
{
|
||||||
|
Log.info("Moving at request of server [sceneId=" + sceneId + "].");
|
||||||
|
|
||||||
|
// clear out our old scene and place data
|
||||||
|
didLeaveScene();
|
||||||
|
|
||||||
|
// move to the new scene
|
||||||
|
moveTo(sceneId);
|
||||||
|
}
|
||||||
|
|
||||||
|
// from interface LocationDirector.FailureHandler
|
||||||
public void recoverFailedMove (int placeId)
|
public void recoverFailedMove (int placeId)
|
||||||
{
|
{
|
||||||
// we'll need this momentarily
|
// we'll need this momentarily
|
||||||
|
|||||||
@@ -24,16 +24,15 @@ package com.threerings.whirled.client;
|
|||||||
import com.threerings.presents.client.InvocationReceiver;
|
import com.threerings.presents.client.InvocationReceiver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines, for the scene services, a set of notifications delivered
|
* Defines, for the scene services, a set of notifications delivered asynchronously by the server
|
||||||
* asynchronously by the server to the client.
|
* to the client.
|
||||||
*/
|
*/
|
||||||
public interface SceneReceiver extends InvocationReceiver
|
public interface SceneReceiver extends InvocationReceiver
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Used to communicate a required move notification to the client. The
|
* Used to communicate a required move notification to the client. The server will have removed
|
||||||
* server will have removed the client from their existing scene
|
* the client from their existing scene and the client is then responsible for generating a
|
||||||
* and the client is then responsible for generating a {@link
|
* {@link SceneService#moveTo} request to move to the new scene.
|
||||||
* SceneService#moveTo} request to move to the new scene.
|
|
||||||
*/
|
*/
|
||||||
public void forcedMove (int sceneId);
|
public void forcedMove (int sceneId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user