com.threerings.crowd.client
Interface OccupantObserver

All Known Implementing Classes:
OccupantAdapter

public interface OccupantObserver

An entity that is interested in hearing about bodies that enter and leave a location (as well as disconnect and reconnect) can implement this interface and register itself with the OccupantDirector.


Method Summary
 void occupantEntered(OccupantInfo info)
          Called when a body enters the place.
 void occupantLeft(OccupantInfo info)
          Called when a body leaves the place.
 void occupantUpdated(OccupantInfo oldinfo, OccupantInfo newinfo)
          Called when an occupant is updated.
 

Method Detail

occupantEntered

void occupantEntered(OccupantInfo info)
Called when a body enters the place.


occupantLeft

void occupantLeft(OccupantInfo info)
Called when a body leaves the place.


occupantUpdated

void occupantUpdated(OccupantInfo oldinfo,
                     OccupantInfo newinfo)
Called when an occupant is updated.

Parameters:
oldinfo - the occupant info prior to the update.
newinfo - the newly update info record.