/* @(#)ConcentrationApplet.java 26 September 2007 */ import edu.neu.ccs.gui.*; /** *

The class for the Concentration game applet.

* *

Uses Java Power Tools 2.6.0.

* *

Copyright, Richard Rasala, 2007.

* * @author Richard Rasala */ public class ConcentrationApplet extends DirectApplet { /** The game image data object to capture applet parameters. */ protected GameImageData imageData = new GameImageData(); /** *

The create GUI method returns a * ConcentrationOptions object.

* *

This applet sets the internal parameter * openedFromApplet so that the * ConcentrationOptions object * will handle the window closing actions for * a ConcentrationGame properly.

*/ public Object createGUI() { setImagesURL(); setImageListFileName(); ConcentrationOptions options = new ConcentrationOptions(imageData); options.openedFromApplet = true; return options; } /* * The method to set the images URL * for the game image data * from the APPLET PARAM tag with name "imagesURL". */ private void setImagesURL() { imageData.setImagesURL(getParameter("imagesURL")); } /* * The method to set the image list file name * for the game image data * from the APPLET PARAM tag with name "imageList". */ private void setImageListFileName() { imageData.setImageListFileName(getParameter("imageList")); } }