QuizGame
Constructor Summary
| Public Constructor | ||
| public | constructor(client: Client, options: object): void | |
Member Summary
| Public Members | ||
| public | challengeTimeoutId: number | |
| public |  | |
| public |  | |
| public | gameActive: boolean | |
| public |  | |
| public | hintIntervalId: number | |
| public |  | |
| public |  | |
| public | settings: object | |
| public | startTimeoutId: number | |
Method Summary
| Public Methods | ||
| public | addPlayer(nick: string): void | |
| public | beginGame(): void | |
| public | endGame(reason: string): void | |
| public | finishChallenge(winner: string): void | |
| public | giveHint(): void | |
| public | handleGuess(nick: string, guess: string): void | |
| public | handleRevolt(nick: string): void | |
| public | nextChallenge(): void | |
| public | notify(target: string, message: string): void | |
| public | removePlayer(nick: string): void | |
| public | sendModes(): void | |
| public | tellHelp(target: string, category: string): void | |
| public | tellScore(multiline: string[]): void | |
| public | tellToChannel(message: string): void | |
| public | updatePlayer(oldnick: string, newnick: string): void | |
Public Constructors
Public Members
public challengeTimeoutId: number source
public currentChallenge: QuizQuestion source
public gameActive: boolean source
public hintIntervalId: number source
public players: QuizPlayers source
public questions: QuizQuestions source
public settings: object source
public startTimeoutId: number source
Public Methods
public addPlayer(nick: string): void source
Params:
| Name | Type | Attribute | Description | 
| nick | string | 
Return:
| void | 
public endGame(reason: string): void source
Params:
| Name | Type | Attribute | Description | 
| reason | string | 
Return:
| void | 
public finishChallenge(winner: string): void source
Params:
| Name | Type | Attribute | Description | 
| winner | string | 
Return:
| void | 
public handleGuess(nick: string, guess: string): void source
Params:
| Name | Type | Attribute | Description | 
| nick | string | ||
| guess | string | 
Return:
| void | 
public handleRevolt(nick: string): void source
Params:
| Name | Type | Attribute | Description | 
| nick | string | 
Return:
| void | 
public notify(target: string, message: string): void source
Params:
| Name | Type | Attribute | Description | 
| target | string | ||
| message | string | 
Return:
| void | 
public removePlayer(nick: string): void source
Params:
| Name | Type | Attribute | Description | 
| nick | string | 
Return:
| void | 
public tellHelp(target: string, category: string): void source
Params:
| Name | Type | Attribute | Description | 
| target | string | ||
| category | string | 
Return:
| void | 
public tellScore(multiline: string[]): void source
Params:
| Name | Type | Attribute | Description | 
| multiline | string[] | 
Return:
| void | 
public tellToChannel(message: string): void source
Params:
| Name | Type | Attribute | Description | 
| message | string | 
Return:
| void | 
public updatePlayer(oldnick: string, newnick: string): void source
Params:
| Name | Type | Attribute | Description | 
| oldnick | string | ||
| newnick | string | 
Return:
| void | 
 Reference
  Source
  
  Reference
  Source
  
   
    
  