Difficulty - */...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
package sjm; /** * Project Simple Java Minesweeper * @author Laurens Van Keer | www.LaVaKe.be * @version 1.1 */ public enum Difficulty { p EASY { E /** * Returns the number of mines. * * @return The Integer 8. | result == 8 */ @SuppressWarnings("unused") public int getNumberOfMines() { return 8; } /** * Returns the timelimit in seconds. * * @return The Integer 180. | result == 180 */ @SuppressWarnings("unused") public int getTimelimit() { return 180; } /** * Returns the String "Easy". * * @return The String "Easy". | result.equals("Easy") */ public String toString() { return "Easy"; } }, NORMAL { N /** * Returns the number of mines. * * @return The Integer 16. | result == 16 */ @SuppressWarnings("unused") public int getNumberOfMines() { return 16; } /** * Returns the timelimit in seconds.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
* * @return The Integer 120. | result == 120
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: */ @SuppressWarnings("unused") public int getTimelimit() { return 120; } /** * Returns the String "Normal". * * @return The String "Normal". | result.equals("Normal") */ public String toString() { return "Normal"; } }, HARD { H /** * Returns the number of mines. * * @return The Integer 24. | result == 24 */ @SuppressWarnings("unused") public int getNumberOfMines() { return 24; } /** * Returns the timelimit in seconds. * * @return The Integer 80. | result == 80 */ @SuppressWarnings("unused") public int getTimelimit() { return 80; } /** * Returns the String "Hard". * * @return The String "Hard". | result.equals("Hard") */ public String toString() { return "Hard"; } }; } abstract int getNumberOfMines(); abstract int getTimelimit(); a }...
View Full Document

This note was uploaded on 03/25/2010 for the course CIS CIS3023 taught by Professor Seema during the Spring '10 term at Florida College.

Page1 / 3

Difficulty - */...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online