/* @(#)GameImageData.java 25 September 2007 */ /** *
The class for the Concentration game web image data.
* *Class GameImageData manages the string data for
* the images URL and images list file name for the images
* used in the Concentration game.
This data is fed to the JPT class WebImageTools
* when the images are retrieved as Paintable objects
* by the class GamePaintables.
Uses Java Power Tools 2.6.0.
* *Copyright, Richard Rasala, 2007.
* * @author Richard Rasala */ public class GameImageData { /** The default constructor. */ public GameImageData() { } /** *The constructor that
* sets the images URL provided that the given url
* is non-null and of positive length.
The constructor that
* sets the images URL
* provided that the given url
* is non-null and of positive length
* and sets the image list file name
* provided that the given name
* is non-null and of positive length.
The constructor that * uses the given args array to set * the images URL and the image list file name.
*/ public GameImageData(String[] args) { if (args == null) return; if (args.length == 0) return; setImagesURL(args[0]); if (args.length == 1) return; setImageListFileName(args[1]); } /** *The images URL.
* *Default:
* http://www.ccs.neu.edu/jpt/images/concentration/
*
The name of the images file list.
* *Default: imagelist.txt
Sets the images URL
* provided that the given url
* is non-null and of positive length.
Gets the images URL.
*/ public String getImagesURL() { return imagesURL; } /** *Sets the image list file name
* provided that the given name
* is non-null and of positive length.
Gets the images URL.
*/ public String getImageListFileName() { return filelist; } }