diff --git a/src/java/com/threerings/media/tile/Tile.java b/src/java/com/threerings/media/tile/Tile.java index 13ec45495..15891cde0 100644 --- a/src/java/com/threerings/media/tile/Tile.java +++ b/src/java/com/threerings/media/tile/Tile.java @@ -1,5 +1,5 @@ // -// $Id: Tile.java,v 1.11 2001/08/16 23:14:20 mdb Exp $ +// $Id: Tile.java,v 1.12 2001/09/28 01:24:27 mdb Exp $ package com.threerings.media.tile; @@ -41,6 +41,16 @@ public class Tile this.tid = (short) tid; } + /** + * Returns the fully qualified tile id for this tile. The fully + * qualified id contains both the tile set identifier and the tile + * identifier. + */ + public int getTileId () + { + return ((int)tsid << 16) | tid; + } + /** * Return a string representation of the tile information. */