Added getScene() and getHoverCoords().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@905 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user