/** *
 *  CSprite.java
 *
 *  Revisions: 1.0 Nov. 23, 2002
 *               Created the CSprite class
 *
 *  
* * @author Jose Manuel Caban * @version Version 1.0, Nov. 23, 2002 */ import javax.swing.*; public class CSprite { /** *Holds image value(s) */ private ImageIcon[] imgSprite; /** *Holds the baseName for the Image Sprite *(i.e. Imagename000.jpg, where 000 = animation number */ private String strImgName; /** *Holds value for time (in fps) for animation delay */ private int iAnimDelay; //////////////// //Constructors// //////////////// /** *@param imgName, the base name for the image file * ex:Street.jpg and Street000.jpg would both have imgName of Street * use / to represent a different folder *@param strExt, the extension for the file * Acceptable types: .jpg, .gif, .bmp *@param animCount, the number of animations * Acceptable values: 1 or higher */ public CSprite(String imgName, String strExt, int animCount){ imgSprite = new ImageIcon[animCount]; this.strImgName = imgName+strExt; for(int i=0; i
* @param args a String array of command line arguments. */ public static void main(String[] args) { }// end of main(String[] args) }// end of class CSprite