summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/GameSettings.java
blob: b7177ef6ac0545c9888e13f859bba00edfb60fee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package jrummikub.model;

/**
 * The overall game settings
 */
public class GameSettings {
	private int initialMeldThreshold;

	/**
	 * Creates new GameSettings with default values
	 */
	public GameSettings() {
		initialMeldThreshold = 30;
	}

	/**
	 * Sets the initial meld threshold
	 * 
	 * @param value the value to set
	 */
	public void setInitialMeldThreshold(int value) {
		initialMeldThreshold = value;
	}

	/**
	 * Returns the initial meld threshold
	 * 
	 * @return the threshold
	 */
	public int getInitialMeldThreshold() {
		return initialMeldThreshold;
	}
}