Files
narya/src/java/com/threerings/media/tile/TileSetManager.java
T
Walter Korman ab7c437a35 Brought into the newly revamped world of contexts. Moved SwingUtil to
samskivert.  Added config values to specify the tileset manager and
scene manager.  Split miso and editor config into two separate
properties files.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@101 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-21 01:51:10 +00:00

51 lines
1.2 KiB
Java

//
// $Id: TileSetManager.java,v 1.7 2001/07/21 01:51:10 shaper Exp $
package com.threerings.miso.tile;
import com.threerings.media.ImageManager;
import java.awt.Image;
import java.io.InputStream;
import java.io.IOException;
import java.util.ArrayList;
public interface TileSetManager
{
/**
* Initialize the TileSetManager with the given ImageManager.
*/
public void init (ImageManager imgmgr);
/**
* Return the total number of tiles in the specified tileset.
*/
public int getNumTilesInSet (int tsid);
/**
* Return a list of all tilesets available for use.
*/
public ArrayList getAllTileSets ();
/**
* Return the tileset object corresponding to the specified tileset id.
*/
public TileSet getTileSet (int tsid);
/**
* Return the image corresponding to the specified tileset and tile id.
*/
public Image getTileImage (int tsid, int tid);
/**
* Return the total number of tilesets.
*/
public int getNumTileSets ();
/**
* Load the tilesets described in the specified input stream into
* the set of available tilesets.
*/
public void loadTileSets (InputStream tis) throws IOException;
}