From 1a1eda672da51486685a3d9dd3bd4ad091637bcc Mon Sep 17 00:00:00 2001 From: Walter Korman Date: Wed, 17 Oct 2001 22:22:03 +0000 Subject: [PATCH] Store and make available the parent object associated with the shadow tile. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@480 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/miso/tile/ShadowTile.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/java/com/threerings/miso/tile/ShadowTile.java b/src/java/com/threerings/miso/tile/ShadowTile.java index c38959ce4..d47b40ad8 100644 --- a/src/java/com/threerings/miso/tile/ShadowTile.java +++ b/src/java/com/threerings/miso/tile/ShadowTile.java @@ -1,5 +1,5 @@ // -// $Id: ShadowTile.java,v 1.1 2001/10/13 01:08:59 shaper Exp $ +// $Id: ShadowTile.java,v 1.2 2001/10/17 22:22:03 shaper Exp $ package com.threerings.miso.tile; @@ -9,20 +9,25 @@ 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. + * placement in the footprint of {@link + * com.threerings.media.tile.ObjectTile} objects. */ public class ShadowTile extends MisoTile { - /** Single instantiation of shadow tile for re-use in scenes. */ - public static ShadowTile TILE = new ShadowTile(); + /** The scene coordinates of the shadow tile's parent object tile. */ + public int ox, oy; /** * Constructs a shadow tile. */ - public ShadowTile () + public ShadowTile (int x, int y) { super(SHADOW_TSID, SHADOW_TID); + // save the coordinates of our parent object tile + ox = x; + oy = y; + // shadow tiles are always impassable passable = false; }