Files
narya/src/java/com/threerings/miso/client/TilePathNode.java
T
Michael Bayne e6796b2d55 The amazing revamp four hundred billion. Let's see:
- 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
2003-01-31 23:10:46 +00:00

52 lines
1.0 KiB
Java

//
// $Id: TilePathNode.java,v 1.3 2003/01/31 23:10:45 mdb Exp $
package com.threerings.miso.client;
import com.threerings.media.util.PathNode;
/**
* The tile path nodes extends the path node class to allow
* associating tile coordinates with a node in a path.
*/
public class TilePathNode extends PathNode
{
/**
* Constructs a tile path node.
*/
public TilePathNode (int tilex, int tiley, int x, int y, int dir)
{
super(x, y, dir);
_tilex = tilex;
_tiley = tiley;
}
/**
* Returns the node's x-axis tile coordinates.
*/
public int getTileX ()
{
return _tilex;
}
/**
* Returns the node's y-axis tile coordinates.
*/
public int getTileY ()
{
return _tiley;
}
// documentation inherited
public void toString (StringBuffer buf)
{
super.toString(buf);
buf.append(", tilex=").append(_tilex);
buf.append(", tiley=").append(_tiley);
}
/** The path node tile coordinates. */
protected int _tilex, _tiley;
}