Added getTileId() which returns the fully qualified tile id.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@352 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-09-28 01:24:27 +00:00
parent 2c98b8ce10
commit c69e46be21
+11 -1
View File
@@ -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.
*/