//
// $Id: ShadowTile.java,v 1.1 2001/10/13 01:08:59 shaper Exp $

package com.threerings.miso.tile;

import java.awt.Graphics2D;
import java.awt.Shape;

/**
 * The shadow tile extends miso tile to provide an always-impassable
 * tile that has no display image.  Shadow tiles are intended for
 * placement in the footprint of {@link ObjectTile} objects.
 */
public class ShadowTile extends MisoTile
{
    /** Single instantiation of shadow tile for re-use in scenes. */
    public static ShadowTile TILE = new ShadowTile();

    /**
     * Constructs a shadow tile.
     */
    public ShadowTile ()
    {
        super(SHADOW_TSID, SHADOW_TID);

        // shadow tiles are always impassable
        passable = false;
    }

    // documentation inherited
    public void paint (Graphics2D gfx, Shape dest)
    {
        // paint nothing as we're naught but a measly shadow of a tile
    }

    /** The shadow tile set id. */
    protected static final int SHADOW_TSID = -1;

    /** The shadow tile id. */
    protected static final int SHADOW_TID = -1;
}

@@ -24,17 +24,17 @@
 ava,v 1.
-1
+2
  2001/10
@@ -39,18 +39,18 @@
 10/1
-3 01:08:59
+7 22:22:03
  sha
@@ -325,17 +325,46 @@
 f %7B@link
- 
+%0A * com.threerings.media.tile.
 ObjectTi
@@ -435,121 +435,95 @@
 /** 
-Single instantiation of shadow tile for re-use in scenes. */%0A    public static ShadowTile TILE = new ShadowTile()
+The scene coordinates of the shadow tile's parent object tile. */%0A    public int ox, oy
 ;%0A%0A 
@@ -593,16 +593,28 @@
 owTile (
+int x, int y
 )%0A    %7B%0A
@@ -654,16 +654,107 @@
 _TID);%0A%0A
+        // save the coordinates of our parent object tile%0A        ox = x;%0A        oy = y;%0A%0A
         

Store and make available the parent object associated with the shadow tile.