More polishing work on scene rendering.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@543 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-10-24 00:55:08 +00:00
parent 7263ecba95
commit c839b61548
12 changed files with 745 additions and 351 deletions
@@ -0,0 +1,51 @@
//
// $Id: TilePathNode.java,v 1.1 2001/10/24 00:55:08 shaper Exp $
package com.threerings.miso.scene;
import com.threerings.media.sprite.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;
}