Added support for associating an action with any of the object tiles in

the scene. This will eventually be interpreted by the scene rendering code
to allow objects to be clickable.

Also rewrote scene serialization code using new Java buffer services which
are much more efficient at reading and writing arrays of integers.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@894 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-01-30 18:28:32 +00:00
parent 617d0e8cb0
commit a07282b2d2
7 changed files with 147 additions and 27 deletions
@@ -1,5 +1,5 @@
//
// $Id: DisplayMisoScene.java,v 1.2 2001/11/27 22:17:42 mdb Exp $
// $Id: DisplayMisoScene.java,v 1.3 2002/01/30 18:28:32 mdb Exp $
package com.threerings.miso.scene;
@@ -32,4 +32,12 @@ public interface DisplayMisoScene
* This layer is read-only and not to be modified.
*/
public ObjectTileLayer getObjectLayer ();
/**
* Returns the action associated with the object tile at the specified
* column and row. Null is returned if no object tile exists at that
* column and row or if the object tile that does exist does not have
* an associated action.
*/
public String getObjectAction (int column, int row);
}