Add an id attribute and default the guessers array
This commit is contained in:
parent
fc298f30d4
commit
eca3b1d5f9
1 changed files with 4 additions and 1 deletions
|
|
@ -1,16 +1,19 @@
|
||||||
import { Player } from "./Player";
|
import { Player } from "./Player";
|
||||||
|
|
||||||
export class Team {
|
export class Team {
|
||||||
|
readonly id: team;
|
||||||
public guessers: Player[];
|
public guessers: Player[];
|
||||||
public writer: Player | null;
|
public writer: Player | null;
|
||||||
private _hand: string[];
|
private _hand: string[];
|
||||||
private _questions: string[];
|
private _questions: string[];
|
||||||
private _answers: string[];
|
private _answers: string[];
|
||||||
|
|
||||||
constructor() {
|
constructor(id: team) {
|
||||||
|
this.id = id;
|
||||||
this._answers = new Array<string>(8).fill(``);
|
this._answers = new Array<string>(8).fill(``);
|
||||||
this._questions = [];
|
this._questions = [];
|
||||||
this._hand = [];
|
this._hand = [];
|
||||||
|
this.guessers = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue