From 71c7c4bdb2ea884c38247a4642411eb986b1a226 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 31 Jan 2002 02:53:29 +0000 Subject: [PATCH] Added getScene() and getHoverCoords(). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@905 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/miso/client/IsoSceneView.java | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/miso/client/IsoSceneView.java b/src/java/com/threerings/miso/client/IsoSceneView.java index dd3627fbc..7fd4dd87c 100644 --- a/src/java/com/threerings/miso/client/IsoSceneView.java +++ b/src/java/com/threerings/miso/client/IsoSceneView.java @@ -1,5 +1,5 @@ // -// $Id: IsoSceneView.java,v 1.87 2002/01/31 02:12:35 mdb Exp $ +// $Id: IsoSceneView.java,v 1.88 2002/01/31 02:53:29 mdb Exp $ package com.threerings.miso.scene; @@ -107,6 +107,14 @@ public class IsoSceneView implements SceneView _hmode = hmode; } + /** + * Returns a reference to the scene being displayed by this view. + */ + public DisplayMisoScene getScene () + { + return _scene; + } + // documentation inherited public void setScene (DisplayMisoScene scene) { @@ -801,6 +809,16 @@ public class IsoSceneView implements SceneView return _hobject; } + /** + * Returns the tile coordinates of the tile over which the mouse is + * hovering (which are the origin coordinates in the case of an object + * tile). + */ + public Point getHoverCoords () + { + return _hcoords; + } + /** * Converts the supplied screen coordinates into tile coordinates, * writing the values into the supplied {@link Point} instance and