/* @(#)Images.java 1.0 for web images 15 November 2004 */

import edu.neu.ccs.gui.*;

import java.awt.*;
import java.net.*;
import javax.swing.*;

/**
 * <p>The class Images encapsulates how the Concentration Game
 * obtains its images.</p>
 * 
 * <p>This version of the class is designed for use with the
 * ConcentrationApplet as installed on the JPT web site.</p>
 */
public class Images {
    
    private static String imagesURL  =
        "http://www.ccs.neu.edu/jpt/jpt_2_3/concentration/images/";

    private static String filelist = "imagelist.txt";
    
    
    public static Image[] getImages() {
        return WebImageTools.readImages(imagesURL, filelist);
    }
    
    
    public static void setImagesURL(String url) {
        if ((url != null) && (url.length() > 0))
            imagesURL = url;
    }
}