Files
narya/src/java/com/threerings/crowd/client/LocationAdapter.java
T
Michael Bayne 8a4c46badc The first great Three Rings renaming. Cocktail changed to Narya, Cher
changed to Presents and Party changed to Crowd. Whee!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@431 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 04:07:54 +00:00

36 lines
969 B
Java

//
// $Id: LocationAdapter.java,v 1.2 2001/10/11 04:07:51 mdb Exp $
package com.threerings.crowd.client;
import com.threerings.crowd.data.PlaceObject;
/**
* The location adapter makes life easier for a class that really only
* cares about one or two of the location observer callbacks and doesn't
* want to provide empty implementations of the others. One can either
* extend location adapter, or create an anonymous instance that overrides
* the desired callback(s). Note that the location adapter defaults to
* ratifying any location change.
*
* @see LocationObserver
*/
public class LocationAdapter implements LocationObserver
{
// documentation inherited
public boolean locationMayChange (int placeId)
{
return true;
}
// documentation inherited
public void locationDidChange (PlaceObject place)
{
}
// documentation inherited
public void locationChangeFailed (int placeId, String reason)
{
}
}