diff options
Diffstat (limited to 'src/jrummikub/model/GameSettings.java')
-rw-r--r-- | src/jrummikub/model/GameSettings.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/jrummikub/model/GameSettings.java b/src/jrummikub/model/GameSettings.java new file mode 100644 index 0000000..b7177ef --- /dev/null +++ b/src/jrummikub/model/GameSettings.java @@ -0,0 +1,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; + } +} |