e6796b2d55
- Reworked colorization repository such that we now have arbitrary named "colorization classes" which can be used by various and sundry entities to colorize themselves. - Added support for individual object colorizations as well as "spots" that go along with objects (will be used to automatically create portals into buildings and automatically position users properly when at a "station"). - Repackaged things in miso to more closely mimic what we do everywhere else (no more miso.scene, now we have miso.data and miso.client). - Fixed up miso scene XML representation so that objects can more easily be expanded to have yet more stuff if we think of more stuff that they might aught to have in the future. Structured the miso scene model so that "uninteresting" objects (those that simply sit somewhere and don't do anything) take up a lot less memory than "interesting" objects (those that have action strings, "spots", colorizations and the works). I may want to roll colorizations into the "uninteresting" realm, but that remains to be seen. - Made it possible for object tilesets to specify default render priorities for objects in that tileset. This will hopefully allow us to get by without any "custom" render priorities that are specified on scene objects, instead relying on the default priorities to resolve common conflicts. There are surely other cleanups in there, but I think that was the major thrust of it. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2228 542714f4-19e9-0310-aa3c-eee0fc999fb1
48 lines
1.5 KiB
Java
48 lines
1.5 KiB
Java
//
|
|
// $Id: DisplayMisoScene.java,v 1.9 2003/01/31 23:10:45 mdb Exp $
|
|
|
|
package com.threerings.miso.client;
|
|
|
|
import java.awt.Rectangle;
|
|
|
|
import com.threerings.media.tile.ObjectTile;
|
|
import com.threerings.media.tile.Tile;
|
|
|
|
import com.threerings.miso.client.util.ObjectSet;
|
|
import com.threerings.miso.tile.BaseTile;
|
|
|
|
/**
|
|
* Makes available the information from the {@link MisoSceneModel} in a
|
|
* form that is amenable to actually displaying the scene in a user
|
|
* interface. As with all display scene implementations, the information
|
|
* provided is read-only and should never be modified by the caller.
|
|
*/
|
|
public interface DisplayMisoScene
|
|
{
|
|
/**
|
|
* Returns the base tile at the specified coordinates.
|
|
*/
|
|
public BaseTile getBaseTile (int x, int y);
|
|
|
|
/**
|
|
* Returns the fringe tile at the specified coordinates.
|
|
*/
|
|
public Tile getFringeTile (int x, int y);
|
|
|
|
/**
|
|
* Populates the supplied object set with info on all objects whose
|
|
* origin falls in the requested region.
|
|
*/
|
|
public void getObjects (Rectangle region, ObjectSet set);
|
|
|
|
/**
|
|
* Returns true if the supplied traverser can traverse the specified
|
|
* tile coordinate. The traverser is whatever object is passed along
|
|
* to the path finder when a path is being computed. Scene
|
|
* implementations which support custom traversal based on the type of
|
|
* the traverser will want to reflect the traverser's class and act
|
|
* acordingly.
|
|
*/
|
|
public boolean canTraverse (Object traverser, int x, int y);
|
|
}
|