Added ratifyBodyEntry to PlaceManager.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3561 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -108,6 +108,12 @@ public class LocationProvider
|
|||||||
return pmgr.getConfig();
|
return pmgr.getConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// make sure they have access to the specified place
|
||||||
|
String errmsg;
|
||||||
|
if ((errmsg = pmgr.ratifyBodyEntry(source)) != null) {
|
||||||
|
throw new InvocationException(errmsg);
|
||||||
|
}
|
||||||
|
|
||||||
// acquire a lock on the body object to ensure that rapid fire
|
// acquire a lock on the body object to ensure that rapid fire
|
||||||
// moveTo requests don't break things
|
// moveTo requests don't break things
|
||||||
if (!source.acquireLock("moveToLock")) {
|
if (!source.acquireLock("moveToLock")) {
|
||||||
|
|||||||
@@ -317,6 +317,19 @@ public class PlaceManager
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provides an opportunity for the place manager to prevent bodies from
|
||||||
|
* entering.
|
||||||
|
*
|
||||||
|
* @return <code>null</code> if the body can enter, otherwise a
|
||||||
|
* translatable message explaining the reason the body is blocked
|
||||||
|
* from entering
|
||||||
|
*/
|
||||||
|
public String ratifyBodyEntry (BodyObject body)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the appropriate derived class of {@link OccupantInfo} that
|
* Returns the appropriate derived class of {@link OccupantInfo} that
|
||||||
* will be used to provide occupant info for this body. An occupant
|
* will be used to provide occupant info for this body. An occupant
|
||||||
|
|||||||
Reference in New Issue
Block a user