Constructors
constructor
- new default(game: Game): default
-
Accessors
activeVoteInterrupt
- get activeVoteInterrupt(): undefined | Prompt
-
Returns undefined | Prompt
Methods
addVote
- addVote(player: default, choice: default): void
-
Returns void
canStartVote
- canStartVote(player: default): boolean
-
Returns boolean
getSecondsBeforeVotingIsAllowed
- getSecondsBeforeVotingIsAllowed(player: default): number
-
Returns number
isVoting
- isVoting(): boolean
-
Returns boolean
resetHistory
- resetHistory(): void
-
Returns void
startVote
- startVote(initiator: default, interrupt: Prompt, ...interruptArgs: any[]): Promise<IVoteResult>
-
Parameters
-
-
-
Rest
...interruptArgs: any[]
Returns Promise<IVoteResult>
Check if voting is active It will also end the existing vote if players left since the vote started
Returns
True if there an active vote