All files / gameFiles/frontend GameSettings.js

0% Statements 0/17
100% Branches 1/1
100% Functions 1/1
0% Lines 0/17

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19                                     
 
/**
 * Stores the configuration of the game
 */
class GameSettings{
    /**
     * Creates an instance of settings to be used in a game
     * 
     * @param {number} roundTime The amount of time per round in a game
     * @param {number} maxPlayers The maximum amount of players in a game
     * @param {boolean} AACEnabled Determines whether ACC functions are enabled or disabled
     */
    constructor(roundTime, maxPlayers, AACEnabled){
        this.roundTime = roundTime;
        this.maxPlayers = maxPlayers;
        this.AACEnabled = AACEnabled;
    }
}