com.threerings.crowd.client
Class OccupantAdapter

java.lang.Object
  extended by com.threerings.crowd.client.OccupantAdapter
All Implemented Interfaces:
OccupantObserver

public class OccupantAdapter
extends Object
implements OccupantObserver

The occupant adapter makes life easier for occupant observer classes that only care about one or two of the occupant observer callbacks. They can either extend occupant adapter or create an anonymous class that extends it and overrides just the callbacks they care about.


Constructor Summary
OccupantAdapter()
           
 
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 oinfo, OccupantInfo info)
          Called when an occupant is updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OccupantAdapter

public OccupantAdapter()
Method Detail

occupantEntered

public void occupantEntered(OccupantInfo info)
Description copied from interface: OccupantObserver
Called when a body enters the place.

Specified by:
occupantEntered in interface OccupantObserver

occupantLeft

public void occupantLeft(OccupantInfo info)
Description copied from interface: OccupantObserver
Called when a body leaves the place.

Specified by:
occupantLeft in interface OccupantObserver

occupantUpdated

public void occupantUpdated(OccupantInfo oinfo,
                            OccupantInfo info)
Description copied from interface: OccupantObserver
Called when an occupant is updated.

Specified by:
occupantUpdated in interface OccupantObserver
Parameters:
oinfo - the occupant info prior to the update.
info - the newly update info record.