From 5f39ae63ff93bcc02b2ad58192d7c1f939ba3089 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sun, 27 Dec 2020 15:11:51 -0700 Subject: [PATCH] Add selectQuestion for when the writer selects a question. --- server/src/objects/Team.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/src/objects/Team.ts b/server/src/objects/Team.ts index 888b1e5..20fa50a 100644 --- a/server/src/objects/Team.ts +++ b/server/src/objects/Team.ts @@ -43,6 +43,16 @@ export class Team { }; + public selectQuestion(question: string) { + /** + * Adds the given question to the history of the questions. + * + * @param question -> The question the spirit is answering + */ + this._questions.push(question); + }; + + public modifyAnswer(answerIndex: number, answer: string) { /** * Takes the value of an answer and modifies in the storage.