Break out the logic for whether the place is empty so we can override it.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4280 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Mike Thomas
2006-07-20 01:28:29 +00:00
parent 2f9ea3a69e
commit 19219bb1a3
@@ -462,11 +462,20 @@ public class PlaceManager
});
// if that leaves us with zero occupants, maybe do something
if (_plobj.occupants.size() == 0) {
if (shouldDeclareEmpty()) {
placeBecameEmpty();
}
}
/**
* Returns whether the location should be marked as empty and potentially
* shutdown.
*/
protected boolean shouldDeclareEmpty ()
{
return (_plobj.occupants.size() == 0);
}
/**
* Called when a body's occupant info is updated.
*/