From 657a8a6f03e93aba48d5fc7f5c1bd17cabfc2e1b Mon Sep 17 00:00:00 2001 From: Walter Korman Date: Sun, 27 Oct 2002 02:03:40 +0000 Subject: [PATCH] Initial version. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1839 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../crowd/client/OccupantAdapter.java | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/java/com/threerings/crowd/client/OccupantAdapter.java diff --git a/src/java/com/threerings/crowd/client/OccupantAdapter.java b/src/java/com/threerings/crowd/client/OccupantAdapter.java new file mode 100644 index 000000000..410c8e5b9 --- /dev/null +++ b/src/java/com/threerings/crowd/client/OccupantAdapter.java @@ -0,0 +1,31 @@ +// +// $Id: OccupantAdapter.java,v 1.1 2002/10/27 02:03:40 shaper Exp $ + +package com.threerings.crowd.client; + +import com.threerings.crowd.data.OccupantInfo; + +/** + * 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. + */ +public class OccupantAdapter implements OccupantObserver +{ + // documentation inherited from interface + public void occupantEntered (OccupantInfo info) + { + } + + // documentation inherited from interface + public void occupantLeft (OccupantInfo info) + { + } + + // documentation inherited from interface + public void occupantUpdated (OccupantInfo oinfo, OccupantInfo info) + { + } +}