Added PlaceManager.applyToOccupants(), and a generic useful OccupantOp.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1869 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-10-31 01:12:08 +00:00
parent 8252efeed1
commit f1c8ccd347
2 changed files with 34 additions and 1 deletions
@@ -0,0 +1,18 @@
//
// $Id: OccupantOp.java,v 1.1 2002/10/31 01:12:08 shaper Exp $
package com.threerings.crowd.server;
import com.threerings.crowd.data.OccupantInfo;
/**
* An operation to be applied to all occupants in a location that may
* contain occupants, e.g., a {@link PlaceManager}.
*/
public interface OccupantOp
{
/**
* Called with the occupant info for each occupant in the location.
*/
public void apply (OccupantInfo info);
}