Reset all parts of the team, not just the hand.
This commit is contained in:
parent
a5ee46bfb2
commit
0d0e9ecdad
1 changed files with 4 additions and 2 deletions
|
|
@ -36,11 +36,13 @@ export class Team {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
public resetHand(): void {
|
public reset(): void {
|
||||||
/**
|
/**
|
||||||
* Removes all the cards from the guesser's hand
|
* Resets all the per-game data related to this team
|
||||||
*/
|
*/
|
||||||
this._hand = [];
|
this._hand = [];
|
||||||
|
this._questions = [];
|
||||||
|
this._answers = new Array<string>(8).fill(``);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue