0
0
Fork 0

Update the team object + docs

This commit is contained in:
Oliver-Akins 2020-12-27 13:11:02 -07:00
parent 69376e51f7
commit e19fb1ef3a
2 changed files with 7 additions and 3 deletions

View file

@ -5,6 +5,9 @@ A representation of a team, this consists of which player is the spirit and a co
| -------- | ---- | ----------- | -------- | ---- | -----------
| guessers | Player[] | All the Players that are on this team. | guessers | Player[] | All the Players that are on this team.
| writer | Player | The player that is acting as the team's spirit. | writer | Player | The player that is acting as the team's spirit.
| hand | String[] | The cards that are in the medium's hand. | _hand | String[] | The cards that are in the medium's hand.
| questions | String[] | The questions that the mediums have asked the spirit. (This is not equivalent to the Spirit's hand) | _questions | String[] | The questions that the mediums have asked the spirit. (This is not equivalent to the Spirit's hand)
| answers | String[] | The answers that the spirit has given. | _answers | String[] | The answers that the spirit has given.
| (get) hand | String[] | Returns the medium's hand.
| (get) answers | String[] | Returns the team's answers.
| (get) questions | String[] | Returns the team's questions.

View file

@ -19,6 +19,7 @@ export class Team {
*/ */
get hand(): string[] { return this._hand; }; get hand(): string[] { return this._hand; };
get answers(): string[] { return this._answers; }; get answers(): string[] { return this._answers; };
get questions(): string[] { return this._questions; };
public addQuestions(questions: string[]): void { public addQuestions(questions: string[]): void {