100aa3ace3
- All images are loaded through the image manager - Architected to allow the use of prepared or unprepared images (and volatile images when the day comes that they support alpha) - Tunable caches for images and tiles - Resource manager caches unpacked resources on the filesystem - Various and sundry other cleanups git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2116 542714f4-19e9-0310-aa3c-eee0fc999fb1
22 lines
563 B
Java
22 lines
563 B
Java
//
|
|
// $Id: TileUtil.java,v 1.4 2003/01/13 22:49:46 mdb Exp $
|
|
|
|
package com.threerings.media.tile;
|
|
|
|
/**
|
|
* Miscellaneous utility routines for working with tiles.
|
|
*/
|
|
public class TileUtil
|
|
{
|
|
/**
|
|
* Generates a fully-qualified tileid given the supplied tileset id
|
|
* and tile index. This fully-qualified id can be used to fetch the
|
|
* tile from the tileset repository which knows about the supplied
|
|
* tileset id.
|
|
*/
|
|
public static int getFQTileId (int tileSetId, int tileIndex)
|
|
{
|
|
return (tileSetId << 16) | tileIndex;
|
|
}
|
|
}
|