package jrummikub.model; import java.util.ArrayList; import java.util.List; /** * The overall game settings */ public class GameSettings { private List players = new ArrayList(); private int initialMeldThreshold; private int jokerPoints; /** * Creates new GameSettings with default values */ public GameSettings() { initialMeldThreshold = 30; jokerPoints = 50; } /** * Returns the list containing the settings of all players * * @return the player settings list */ public List getPlayerList() { return players; } /** * 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; } /** * Sets the points counted for a joker * * @param value * the value to set */ public void setJokerPoints(int value) { jokerPoints = value; } /** * Returns the points counted for a joker * * @return the points */ public int getJokerPoints() { return jokerPoints; } }