
package yotris.util;
import yotris.util.DifficultyLevel;

public class Settings {
	private DifficultyLevel difficulty;
	private int gridWidth;
	private int gridHeight;

	public Settings() {
		// the default settings
		this(DifficultyLevel.EASY, 10, 20);
	}

	public Settings(DifficultyLevel difficulty, int gridWidth, int gridHeight) {
		this.difficulty = difficulty;
		this.gridWidth = gridWidth;
		this.gridHeight = gridHeight;
	}

	public DifficultyLevel getDifficulty() {
		return difficulty;
	}

	public int getGridWidth() {
		return gridWidth;
	}

	public int getGridHeight() {
		return gridHeight;
	}

}

@@ -52,16 +52,47 @@
 Level;%0A%0A
+/**%0A *%0A * @author pekkavaa%0A */%0A
 public c
@@ -194,16 +194,100 @@
 eight;%0A%0A
+%09/**%0A%09 * The constructor with no parameters initialises the default settings. %0A%09 */%0A
 %09public 
@@ -363,24 +363,216 @@
 0, 20);%0A%09%7D%0A%0A
+%09/**%0A%09 *%0A%09 * @param difficulty%09The game difficulty level, see %7B@link DifficultyLevel%7D%0A%09 * @param gridWidth%09The game area width in tiles%0A%09 * @param gridHeight%09The game are height in tiles%0A%09 */%0A
 %09public Sett
@@ -731,24 +731,67 @@
 Height;%0A%09%7D%0A%0A
+%09/**%0A%09 *%0A%09 * @return%09difficulty level%0A%09 */%0A
 %09public Diff
@@ -841,24 +841,66 @@
 iculty;%0A%09%7D%0A%0A
+%09/**%0A%09 *%0A%09 * @return game area width%0A%09 */%0A
 %09public int 
@@ -940,16 +940,59 @@
 th;%0A%09%7D%0A%0A
+%09/**%0A%09 *%0A%09 * @return game area height%0A%09 */%0A
 %09public 

add settings javadoc