Added leavePlace() for games where you are sometimes not in any "place" at
all. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3638 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -56,6 +56,12 @@ public class LocationDispatcher extends InvocationDispatcher
|
||||
throws InvocationException
|
||||
{
|
||||
switch (methodId) {
|
||||
case LocationMarshaller.LEAVE_PLACE:
|
||||
((LocationProvider)provider).leavePlace(
|
||||
source
|
||||
);
|
||||
return;
|
||||
|
||||
case LocationMarshaller.MOVE_TO:
|
||||
((LocationProvider)provider).moveTo(
|
||||
source,
|
||||
|
||||
@@ -75,6 +75,15 @@ public class LocationProvider
|
||||
listener.moveSucceeded(moveTo((BodyObject)caller, placeId));
|
||||
}
|
||||
|
||||
/**
|
||||
* Requests that we leave our current place and move to nowhere land.
|
||||
*/
|
||||
public void leavePlace (ClientObject caller)
|
||||
throws InvocationException
|
||||
{
|
||||
leaveOccupiedPlace((BodyObject)caller);
|
||||
}
|
||||
|
||||
/**
|
||||
* Moves the specified body from whatever location they currently
|
||||
* occupy to the location identified by the supplied place id.
|
||||
|
||||
Reference in New Issue
Block a user