C# Класс WebSocketServer.Round

Specifies information about a game round.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DecideVote ( string card ) : void

Sets the final decision on a round, and clears the votes.

FlipCards ( ) : void

Flips the cards so that all clients can see all votes.

RegisterVote ( Vote newVote ) : bool

Registers a new vote into this round.

Restart ( ) : void

Restarts the round by clearing all votes, un-flipping the cards, and clearing any final decision.

Round ( string title ) : System

Initializes a new instance of the Round class.

UndoVote ( Client c ) : void

Un-does a vote from a specific client. If the specified client didn't vote, this method does nothing.

Описание методов

DecideVote() публичный Метод

Sets the final decision on a round, and clears the votes.
public DecideVote ( string card ) : void
card string The card to mark as the "decision".
Результат void

FlipCards() публичный Метод

Flips the cards so that all clients can see all votes.
public FlipCards ( ) : void
Результат void

RegisterVote() публичный Метод

Registers a new vote into this round.
public RegisterVote ( Vote newVote ) : bool
newVote Vote The new vote to register.
Результат bool

Restart() публичный Метод

Restarts the round by clearing all votes, un-flipping the cards, and clearing any final decision.
public Restart ( ) : void
Результат void

Round() публичный Метод

Initializes a new instance of the Round class.
public Round ( string title ) : System
title string The round title.
Результат System

UndoVote() публичный Метод

Un-does a vote from a specific client. If the specified client didn't vote, this method does nothing.
public UndoVote ( Client c ) : void
c Client The client whose vote to remove.
Результат void