The basis for logging all recent chat on the server. Now I have to make

every type of chat object known to man capable of reporting who's
listening.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2653 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-06-14 00:47:16 +00:00
parent 7d98a59c1c
commit e6dc5c38d7
4 changed files with 159 additions and 10 deletions
@@ -1,5 +1,5 @@
//
// $Id: LocationDirector.java,v 1.29 2003/01/09 02:46:58 mdb Exp $
// $Id: LocationDirector.java,v 1.30 2003/06/14 00:47:16 mdb Exp $
package com.threerings.crowd.client;
@@ -93,6 +93,14 @@ public class LocationDirector extends BasicDirector
return _plobj;
}
/**
* Returns true if there is a pending move request.
*/
public boolean movePending ()
{
return (_pendingPlaceId > 0);
}
/**
* Requests that this client be moved to the specified place. A
* request will be made and when the response is received, the
@@ -415,16 +423,18 @@ public class LocationDirector extends BasicDirector
}
// documentation inherited from interface
public void forcedMove (int placeId)
public void forcedMove (final int placeId)
{
Log.info("Moving at request of server [placeId=" + placeId + "].");
// clear out our old place information
mayLeavePlace();
didLeavePlace();
if (movePending()) {
// clear out our old place information
mayLeavePlace();
didLeavePlace();
// move to the new place
moveTo(placeId);
// move to the new place
moveTo(placeId);
}
}
/**