Began porting 'whirled'.

The basic whirled stuff is here; compiling and working.
'Spot' still to come.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4133 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-05-20 02:18:18 +00:00
parent fb10d38232
commit f7eb18460a
26 changed files with 1950 additions and 26 deletions
@@ -494,17 +494,17 @@ public class LocationDirector extends BasicDirector
// does whatever's necessary
// try to return to our previous location
// if (_failureHandler != null) {
// _failureHandler.recoverFailedMove(placeId);
//
// } else {
if (_failureHandler != null) {
_failureHandler.recoverFailedMove(placeId);
} else {
// if we were previously somewhere (and that somewhere isn't
// where we just tried to go), try going back to that happy
// place
if (_previousPlaceId != -1 && _previousPlaceId != placeId) {
moveTo(_previousPlaceId);
}
// }
}
}
/**
@@ -517,19 +517,20 @@ public class LocationDirector extends BasicDirector
* this interface whereby they can interject themseves into the
* failure recovery process and do their own failure recovery.
*/
// public void setFailureHandler (FailureHandler handler)
// {
// if (_failureHandler != null) {
// log.warning("Requested to set failure handler, but we've " +
// "already got one. The conflicting entities will " +
// "likely need to perform more sophisticated " +
// "coordination to deal with failures. " +
// "[old=" + _failureHandler + ", new=" + handler + "].");
//
// } else {
// _failureHandler = handler;
// }
// }
public function setFailureHandler (
handler :LocationDirector_FailureHandler) :void
{
if (_failureHandler != null) {
log.warning("Requested to set failure handler, but we've " +
"already got one. The conflicting entities will " +
"likely need to perform more sophisticated " +
"coordination to deal with failures. " +
"[old=" + _failureHandler + ", new=" + handler + "].");
} else {
_failureHandler = handler;
}
}
protected function notifyFailure (placeId :int, reason :String) :void
{
@@ -572,7 +573,7 @@ public class LocationDirector extends BasicDirector
/** The entity that deals when we fail to subscribe to a place
* object. */
// protected FailureHandler _failureHandler;
protected var _failureHandler :LocationDirector_FailureHandler;
/** A listener that wants to know if we succeeded or
* how we failed to move. */