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:
@@ -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;
|
package com.threerings.media.tile;
|
||||||
|
|
||||||
@@ -41,6 +41,16 @@ public class Tile
|
|||||||
this.tid = (short) tid;
|
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.
|
* Return a string representation of the tile information.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user