From 9f48d11b4e8c24396f58e84f5031a8a06b9e1628 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sun, 11 Jan 2004 08:24:16 +0000 Subject: [PATCH] Make the screen coordinates of the object's spot available since we have them. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2931 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/miso/client/SceneObject.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/miso/client/SceneObject.java b/src/java/com/threerings/miso/client/SceneObject.java index 99a3eae0b..a8fa95851 100644 --- a/src/java/com/threerings/miso/client/SceneObject.java +++ b/src/java/com/threerings/miso/client/SceneObject.java @@ -1,5 +1,5 @@ // -// $Id: SceneObject.java,v 1.9 2003/05/31 00:52:15 mdb Exp $ +// $Id: SceneObject.java,v 1.10 2004/01/11 08:24:16 mdb Exp $ package com.threerings.miso.client; @@ -141,6 +141,15 @@ public class SceneObject return _fspot; } + /** + * Returns the location associated with this object's "spot" in screen + * coordinates or null if it has no spot. + */ + public Point getObjectScreenSpot () + { + return _sspot; + } + /** * Returns true if this object's footprint overlaps that of the * specified other object.